Created
January 8, 2016 17:28
-
-
Save manodupont/ea38455f608a87970b22 to your computer and use it in GitHub Desktop.
This file contains 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
var ExtractTextPlugin = require("extract-text-webpack-plugin"); | |
module.exports = { | |
entry: __dirname + '/src/js/main.jsx', | |
output: { | |
path: __dirname + "/dist/js", | |
filename: 'bundle.js' | |
}, | |
module: { | |
loaders: [ | |
{ test: /\.jsx?$/, loader: 'jsx-loader?harmony' }, | |
{ test: /\.scss$/, loader: ExtractTextPlugin.extract( 'style-loader', 'css-loader!sass-loader' ) }, | |
] | |
}, | |
plugins: [ | |
new ExtractTextPlugin( "bundle.css" ) | |
] | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment