Use webpack CLI instead of gulpfile.js

This commit is contained in:
Yuya Ochiai
2016-10-12 00:02:05 +09:00
parent 9a0c3f4075
commit 0fb3b5e378
4 changed files with 74 additions and 76 deletions

View File

@@ -19,7 +19,9 @@
"scripts": {
"install": "cd src && npm install",
"postinstall": "npm run build",
"build": "gulp build",
"build": "npm run build:main && npm run build:renderer && gulp build",
"build:main": "cross-env NODE_ENV=production webpack --config webpack.config.main.js",
"build:renderer": "cross-env NODE_ENV=production webpack --config webpack.config.renderer.js",
"start": "electron dist",
"watch": "gulp watch",
"serve": "gulp watch",
@@ -52,11 +54,8 @@
"mocha": "^3.0.2",
"mocha-circleci-reporter": "0.0.2",
"spectron": "~3.4.0",
"style-loader": "^0.13.1",
"through2": "^2.0.1",
"vinyl-named": "^1.1.0",
"webpack": "^1.13.1",
"webpack-stream": "^3.2.0"
"webpack": "^1.13.1"
},
"build": {
"appId": "com.mattermost.desktop",