Merge pull request #977 from thelounge/xpaw/reduce-vendor

Do not build json3 module with Webpack
This commit is contained in:
Jérémie Astori 2017-03-30 01:27:15 -04:00 committed by GitHub
commit d5d3cb605b
2 changed files with 4 additions and 1 deletions

View File

@ -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",

View File

@ -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")
]