Merge pull request #977 from thelounge/xpaw/reduce-vendor
Do not build json3 module with Webpack
This commit is contained in:
commit
d5d3cb605b
@ -17,7 +17,7 @@
|
||||
"start-dev": "npm-run-all --parallel watch start",
|
||||
"build": "npm-run-all build:*",
|
||||
"build:font-awesome": "node scripts/build-fontawesome.js",
|
||||
"build:webpack": "webpack",
|
||||
"build:webpack": "webpack --progress",
|
||||
"watch": "webpack --watch",
|
||||
"test": "npm-run-all -c test:* lint",
|
||||
"test:mocha": "mocha",
|
||||
|
@ -60,6 +60,9 @@ let config = {
|
||||
},
|
||||
]
|
||||
},
|
||||
externals: {
|
||||
json3: "JSON", // socket.io uses json3.js, but we do not target any browsers that need it
|
||||
},
|
||||
plugins: [
|
||||
new webpack.optimize.CommonsChunkPlugin("js/bundle.vendor.js")
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user