mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2025-01-24 15:48:27 +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:
parent
2f67eaf99d
commit
c1f844f072
@ -12,7 +12,7 @@
|
|||||||
"main": "lib/buildApp.js",
|
"main": "lib/buildApp.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1",
|
"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-module": "babel src -d lib",
|
||||||
"build": "npm run build-app && npm run build-module",
|
"build": "npm run build-app && npm run build-module",
|
||||||
"watch": "babel --watch src -d lib",
|
"watch": "babel --watch src -d lib",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user