Add source-map

This commit is contained in:
Wei Zhu 2017-11-17 17:23:48 +08:00
parent 8fcb214100
commit ca171f2a20

View File

@ -81,6 +81,10 @@ module.exports = {
});
}
if (isDev) {
config.devtool = 'source-map';
}
config.plugins.push(new CSSSplitWebpackPlugin({ size: 4000 }));
return config;