Better webpack settings for development

This commit is contained in:
Jori Lallo
2016-08-27 13:18:46 -07:00
parent c28a403321
commit 8ed81884d7
4 changed files with 12 additions and 9 deletions

View File

@@ -19,7 +19,10 @@ productionWebpackConfig = Object.assign(commonWebpackConfig, {
publicPath: '/static/',
},
});
productionWebpackConfig.module.loaders.push({
test: /\.s?css$/,
loader: ExtractTextPlugin.extract('style-loader', 'css-loader?modules&importLoaders=1&localIdentName=[name]__[local]___[hash:base64:5]!sass?sourceMap')
});
productionWebpackConfig.plugins.push(new HtmlWebpackPlugin({
template: 'server/static/index.html'
}));