Optimize build process

This commit is contained in:
uwap 2017-11-06 09:39:55 +01:00
parent 735737f4a2
commit c99cc70bcf
5 changed files with 958 additions and 37 deletions

View file

@ -4,8 +4,9 @@
"author": "uwap <me+spacemap.package.json@uwap.name>",
"description": "control devices via mqtt on a beautiful map of your space",
"scripts": {
"build": "webpack --bail",
"watch": "webpack --watch"
"build": "webpack --bail --config webpack.dev.js",
"production-build": "webpack --bail --config webpack.prod.js",
"watch": "webpack-dev-server --open --config webpack.dev.js"
},
"dependencies": {
"babel-preset-env": "^1.6.0",
@ -26,6 +27,7 @@
"babel-core": "^6.25.0",
"babel-loader": "^7.1.1",
"babel-preset-react": "^6.24.1",
"clean-webpack-plugin": "^0.1.17",
"css-loader": "^0.28.7",
"extract-text-webpack-plugin": "^3.0.2",
"file-loader": "^1.1.5",
@ -35,6 +37,8 @@
"html-webpack-plugin": "^2.30.1",
"style-loader": "^0.19.0",
"webpack": "^3.1.0",
"webpack-dev-server": "^2.9.4",
"webpack-merge": "^4.1.1",
"webpack-shell-plugin": "^0.5.0"
},
"license": "MIT"