Minify production builds
This commit is contained in:
parent
716bffa3e6
commit
51b1f30729
|
@ -5,7 +5,7 @@
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "webpack",
|
"build": "webpack",
|
||||||
"build:production": "webpack -p",
|
"build:production": "webpack -p --optimize-minimize",
|
||||||
"watch": "webpack --progress --watch",
|
"watch": "webpack --progress --watch",
|
||||||
"start": "node serve.js"
|
"start": "node serve.js"
|
||||||
},
|
},
|
||||||
|
@ -28,6 +28,7 @@
|
||||||
"redux": "^3.7.2",
|
"redux": "^3.7.2",
|
||||||
"redux-thunk": "^2.2.0",
|
"redux-thunk": "^2.2.0",
|
||||||
"style-loader": "^0.18.2",
|
"style-loader": "^0.18.2",
|
||||||
|
"uglifyjs-webpack-plugin": "^0.4.6",
|
||||||
"webpack": "^3.1.0",
|
"webpack": "^3.1.0",
|
||||||
"webpack-dev-middleware": "^1.12.0",
|
"webpack-dev-middleware": "^1.12.0",
|
||||||
"webpack-hot-middleware": "^2.18.2"
|
"webpack-hot-middleware": "^2.18.2"
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
const path = require("path");
|
const path = require("path");
|
||||||
const webpack = require("webpack");
|
const webpack = require("webpack");
|
||||||
|
|
||||||
|
|
||||||
const defines = {
|
const defines = {
|
||||||
"DEFAULT_WS_URI": process.env.WEBSOCKET_URI || "ws://localhost:8412/"
|
"DEFAULT_WS_URI": process.env.WEBSOCKET_URI || "ws://localhost:8412/"
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user