var CompressionPlugin = require("compression-webpack-plugin");
// Added to overcome node-sass bug https://github.com/iam4x/isomorphic-flux-boilerplate/issues/62
process.env.UV_THREADPOOL_SIZE=64;
+var htmlFilename = (process.argv.indexOf('--production-debug') !== -1) ? 'debug.html' : 'index.html';
var config = {
devtool: 'source-map',
entry: mainPath,
},
plugins: [
new HtmlWebpackPlugin({
- filename: '../index.html',
+ filename: '../' + htmlFilename,
templateContent: '<div id="content"></div>'
})
]