尝试加入electron打包
Showing
electron.js
0 → 100644
| ... | @@ -7,8 +7,11 @@ | ... | @@ -7,8 +7,11 @@ |
| "scripts": { | "scripts": { | ||
| "dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js", | "dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js", | ||
| "start": "npm run dev", | "start": "npm run dev", | ||
| "electron": "electron electron.js", | |||
| "lint": "eslint --fix --ext .js,.vue src", | "lint": "eslint --fix --ext .js,.vue src", | ||
| "build": "node build/build.js" | "build": "node build/build.js", | ||
| "build:mac": "node build/build.js && electron-packager ./dist dashboard --platform=mas --electron-version=6.1.0 --overwrite", | |||
| "build:win": "node build/build.js && electron-packager ./dist dashboard --platform=win32 --electron-version=6.1.0 --overwrite" | |||
| }, | }, | ||
| "dependencies": { | "dependencies": { | ||
| "babel-polyfill": "^6.26.0", | "babel-polyfill": "^6.26.0", | ||
| ... | @@ -34,6 +37,8 @@ | ... | @@ -34,6 +37,8 @@ |
| "chalk": "^2.0.1", | "chalk": "^2.0.1", | ||
| "copy-webpack-plugin": "^4.0.1", | "copy-webpack-plugin": "^4.0.1", | ||
| "css-loader": "^0.28.0", | "css-loader": "^0.28.0", | ||
| "electron": "^3.0.11", | |||
| "electron-packager": "^13.0.0", | |||
| "eslint": "^4.15.0", | "eslint": "^4.15.0", | ||
| "eslint-friendly-formatter": "^3.0.0", | "eslint-friendly-formatter": "^3.0.0", | ||
| "eslint-loader": "^1.7.1", | "eslint-loader": "^1.7.1", | ||
| ... | ... |
Please
register
or
sign in
to comment