2
2
mirror of https://github.com/Llewellynvdm/nativefier.git synced 2025-01-09 00:21:10 +00:00

Fix invalid argument in build app

- Fix `--detect-globals` which was causing `__dirname` to be a constant
- Add `cp` of preload script from `src` to `lib`
This commit is contained in:
Jia Hao 2016-01-22 19:54:40 +08:00
parent 2f67eaf99d
commit c1f844f072

View File

@ -12,7 +12,7 @@
"main": "lib/buildApp.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build-app": "browserify app/main.js --node --ignore-missing --detect-globals=false --debug -o app/lib/main.js",
"build-app": "browserify app/src/main.js --node --ignore-missing --detect-globals false --debug -o app/lib/main.js && cp app/src/preload.js app/lib/preload.js",
"build-module": "babel src -d lib",
"build": "npm run build-app && npm run build-module",
"watch": "babel --watch src -d lib",