Skip to content

Instantly share code, notes, and snippets.

@manodupont
Created January 8, 2016 17:27
Show Gist options
  • Save manodupont/abb252092312fbbc42d2 to your computer and use it in GitHub Desktop.
Save manodupont/abb252092312fbbc42d2 to your computer and use it in GitHub Desktop.
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