mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-17 05:02:06 +00:00
Disable NODE_OPTIONS in entry file
This commit is contained in:
3
index.js
3
index.js
@ -22,6 +22,9 @@ unhandled({
|
|||||||
showDialog: false,
|
showDialog: false,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Disable Node options if the env var is set
|
||||||
|
process.env.NODE_OPTIONS = "";
|
||||||
|
|
||||||
const app = electron.app;
|
const app = electron.app;
|
||||||
app.commandLine.appendSwitch(
|
app.commandLine.appendSwitch(
|
||||||
"js-flags",
|
"js-flags",
|
||||||
|
|||||||
@ -50,7 +50,7 @@
|
|||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "jest",
|
"test": "jest",
|
||||||
"start": "NODE_OPTIONS= electron .",
|
"start": "electron .",
|
||||||
"start:debug": "ELECTRON_ENABLE_LOGGING=1 electron .",
|
"start:debug": "ELECTRON_ENABLE_LOGGING=1 electron .",
|
||||||
"icon": "rimraf assets/generated && electron-icon-maker --input=assets/youtube-music.png --output=assets/generated",
|
"icon": "rimraf assets/generated && electron-icon-maker --input=assets/youtube-music.png --output=assets/generated",
|
||||||
"generate:package": "node utils/generate-package-json.js",
|
"generate:package": "node utils/generate-package-json.js",
|
||||||
|
|||||||
Reference in New Issue
Block a user