Добавил postinstall, плагин html-webpack-plugin

This commit is contained in:
Book Pauk
2019-01-04 18:31:17 +07:00
parent 0b8e41ef2e
commit c58c47018e
2 changed files with 259 additions and 1 deletions

View File

@@ -7,10 +7,12 @@
"scripts": {
"dev": "nodemon --inspect server",
"build:client": "webpack --config build/webpack.prod.config.js",
"build:client-dev": "webpack --config build/webpack.dev.config.js",
"build:linux": "npm run build:client && pkg -t latest-linux-x64 -o dist/linux/liberama .",
"build:win": "npm run build:client && pkg -t latest-win-x64 -o dist/win/liberama .",
"lint": "eslint --ext=.js,.vue client server",
"test": "eslint client/App.vue"
"postinstall": "npm run build:client-dev"
},
"bin": "server/index.js",
"pkg": {
@@ -33,6 +35,7 @@
"eslint-plugin-node": "^8.0.0",
"eslint-plugin-vue": "^5.0.0",
"file-loader": "^3.0.1",
"html-webpack-plugin": "^3.2.0",
"mini-css-extract-plugin": "^0.5.0",
"optimize-css-assets-webpack-plugin": "^5.0.1",
"pkg": "^4.3.5",