Skip to content

Commit

Permalink
build before dist
Browse files Browse the repository at this point in the history
  • Loading branch information
moshfeu committed Dec 8, 2018
1 parent f4b9762 commit 9535b13
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,11 @@
"scripts": {
"webpack": "webpack --watch",
"electron": "electron .",
"pack": "electron-builder --dir",
"dist": "electron-builder",
"pack": "npm run build && electron-builder --dir",
"dist": "npm run build && electron-builder",
"dist-windows": "npm run dist -- --win",
"generate-icons": "./node_modules/.bin/electron-icon-maker --input=app-resources/logo-full-size.png --output=resources"
"generate-icons": "./node_modules/.bin/electron-icon-maker --input=app-resources/logo-full-size.png --output=resources",
"build": "webpack --config webpack.prod.js"
},
"author": "MosheF",
"license": "MIT",
Expand Down
5 changes: 5 additions & 0 deletions webpack.prod.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const config = require('./webpack.config');

config.watch = false;

module.exports = config;

0 comments on commit 9535b13

Please sign in to comment.