Refactor webpack module

This commit is contained in:
Yukai Huang 2016-10-13 08:56:56 +08:00
parent b90c26fe90
commit 43c9f68b9a
6 changed files with 132 additions and 98 deletions

View file

@ -11,12 +11,12 @@ module.exports = Object.assign({}, baseConfig, {
Visibility: "visibilityjs",
Cookies: "js-cookie",
emojify: "emojify.js",
io: "socket.io-client",
key: "keymaster"
}),
new ExtractTextPlugin("[name].css"),
new webpack.optimize.CommonsChunkPlugin({
name: ["vendor", "public", "slide", "locale"],
names: ["vendor", "public", "slide", "locale"],
children: true,
async: true,
filename: '[name].js',
minChunks: Infinity
@ -78,6 +78,7 @@ module.exports = Object.assign({}, baseConfig, {
compress: {
warnings: false
},
mangle: false,
sourceMap: false
})
],