Created
January 24, 2017 11:58
-
-
Save jacobp100/4f0b08bf485bfcdcb17741cbabf85c75 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
module: { | |
loaders: [{ | |
// This is specifically for Cssta | |
test: /\.jsx?$/, | |
loader: 'babel-loader', | |
options: { | |
plugins: [ | |
['babel-plugin-cssta', { output: 'dist/styles.css' }], | |
'transform-es2015-modules-commonjs', | |
], | |
}, | |
}, { | |
// This is just your normal babel config | |
test: /\.jsx?$/, | |
exclude: /node_modules/ | |
loader: 'babel-loader', | |
// Your normal setup here | |
// Maybe options: { presets: ['env'] }? | |
}], | |
}, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment