From fb8a0562033a266c8683d44a7b46df2e5e875d8d Mon Sep 17 00:00:00 2001 From: Henpai Hsu Date: Fri, 17 Mar 2017 04:30:14 +0800 Subject: [PATCH] fix dist problem --- .gitignore | 5 +---- config.js | 4 ++-- package.json | 2 +- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 3237c8d..2da745d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,5 @@ .DS_Store -app/dist/index.html -app/dist/main.js -app/dist/renderer.js -app/dist/styles.css +app/dist/* builds/* node_modules/ npm-debug.log diff --git a/config.js b/config.js index 50f2138..f726098 100644 --- a/config.js +++ b/config.js @@ -14,8 +14,8 @@ let config = { // Docs: https://simulatedgreg.gitbooks.io/electron-vue/content/docs/building_your_app.html building: { arch: 'x64', - asar: true, - dir: path.join(__dirname, 'app'), + asar: false, + dir: path.join(__dirname, 'app/'), icon: path.join(__dirname, 'app/icons/icon'), ignore: /\b(src|index\.ejs|icons)\b/, out: path.join(__dirname, 'builds'), diff --git a/package.json b/package.json index bd85b94..d6a41db 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "pack": "npm run pack:main && npm run pack:renderer", "pack:main": "cross-env NODE_ENV=production webpack -p --progress --colors --config webpack.main.config.js", "pack:renderer": "cross-env NODE_ENV=production webpack -p --progress --colors --config webpack.renderer.config.js", - "postinstall": "cd app && npm install && ./app/node_modules/.bin/electron-rebuild" + "postinstall": "cd app && npm install && ./node_modules/.bin/electron-rebuild" }, "author": "Greg Holguin ", "license": "MIT",