build: update npm scripts

This commit is contained in:
Micooz 2017-07-27 17:38:42 +08:00
parent 07a5414d2e
commit bf12d05797
1 changed files with 4 additions and 3 deletions

View File

@ -5,9 +5,10 @@
"main": "dist/DPlayer.min.js",
"style": "dist/DPlayer.min.css",
"scripts": {
"test": "webpack",
"build": "webpack",
"dev": "cross-env WEBPACK_ENV=dev webpack-dev-server --hot --progress --inline --host 0.0.0.0"
"start": "npm run dev",
"build": "cross-env NODE_ENV=production webpack --config webpack/prod.config.js --progress --display-error-details --colors",
"dev": "cross-env NODE_ENV=development webpack-dev-server --config webpack/dev.config.js --watch --colors",
"test": "eslint src"
},
"files": [
"dist"