Do not build json3 module of Webpack

This commit is contained in:
Pavel Djundik 2017-03-19 10:02:39 +02:00 committed by Jérémie Astori
parent 52cc3ee909
commit 9bf1e6e0d5
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")
]