mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-14 07:04:45 -04:00
Refactor webpack module
This commit is contained in:
parent
b90c26fe90
commit
43c9f68b9a
6 changed files with 132 additions and 98 deletions
|
@ -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
|
||||
})
|
||||
],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue