Minify production builds

This commit is contained in:
Drew DeVault 2017-09-09 16:22:23 +09:00
parent 716bffa3e6
commit 51b1f30729
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@
"main": "index.js",
"scripts": {
"build": "webpack",
"build:production": "webpack -p",
"build:production": "webpack -p --optimize-minimize",
"watch": "webpack --progress --watch",
"start": "node serve.js"
},
@ -28,6 +28,7 @@
"redux": "^3.7.2",
"redux-thunk": "^2.2.0",
"style-loader": "^0.18.2",
"uglifyjs-webpack-plugin": "^0.4.6",
"webpack": "^3.1.0",
"webpack-dev-middleware": "^1.12.0",
"webpack-hot-middleware": "^2.18.2"

View File

@ -1,7 +1,6 @@
const path = require("path");
const webpack = require("webpack");
const defines = {
"DEFAULT_WS_URI": process.env.WEBSOCKET_URI || "ws://localhost:8412/"
};