Skip to content

Commit

Permalink
Merge pull request thelounge#977 from thelounge/xpaw/reduce-vendor
Browse files Browse the repository at this point in the history
Do not build json3 module with Webpack
  • Loading branch information
astorije committed Mar 30, 2017
2 parents 1271fba + da0539f commit 42985c8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -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",
Expand Down
3 changes: 3 additions & 0 deletions webpack.config.js
Expand Up @@ -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")
]
Expand Down

0 comments on commit 42985c8

Please sign in to comment.