Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Solved] Correct formatting of --config JSON file in Windows #1234

Open
Pixelsplasher opened this issue Feb 3, 2024 · 0 comments
Open

[Solved] Correct formatting of --config JSON file in Windows #1234

Pixelsplasher opened this issue Feb 3, 2024 · 0 comments

Comments

@Pixelsplasher
Copy link

Pixelsplasher commented Feb 3, 2024

The following JSON format works in Windows CLI for the option --config :

`{

"compact": false,
"controlFlowFlattening": false,
"controlFlowFlatteningThreshold": 0.75,
"deadCodeInjection": true,
"deadCodeInjectionThreshold": 0.4,
"debugProtection": false,
"debugProtectionInterval": 0,
"disableConsoleOutput": false,
"domainLock": [],
"domainLockRedirectUrl": "about:blank",
"forceTransformStrings": [],
"identifierNamesCache": null,
"identifierNamesGenerator": "hexadecimal",
"identifiersDictionary": [],
"identifiersPrefix": "",
"ignoreImports": false,
"inputFileName": "",
"log": false,
"numbersToExpressions": false,
"optionsPreset": "default",
"renameGlobals": false,
"renameProperties": false,
"renamePropertiesMode": "safe",
"reservedNames": [],
"reservedStrings": [],
"seed": 0,
"selfDefending": false,
"simplify": false,
"sourceMap": false,
"sourceMapBaseUrl": "",
"sourceMapFileName": "",
"sourceMapMode": "separate",
"sourceMapSourcesMode": "sources-content",
"splitStrings": false,
"splitStringsChunkLength": 10,
"stringArray": true,
"stringArrayCallsTransform": false,
"stringArrayCallsTransformThreshold": 0.5,
"stringArrayEncoding": [],
"stringArrayIndexesType": [
	"hexadecimal-number"
],
"stringArrayIndexShift": true,
"stringArrayRotate": false,
"stringArrayShuffle": true,
"stringArrayWrappersCount": 1,
"stringArrayWrappersChainedCalls": true,
"stringArrayWrappersParametersMaxCount": 2,
"stringArrayWrappersType": "variable",
"stringArrayThreshold": 0.8,
"target": "node",
"transformObjectKeys": true,
"unicodeEscapeSequence": false

}`

*Without the backtick character.
Sample

Otherwise, you will get the following error:
throw new ReferenceError(Cannot open config file with path: ${configPath})

This was referenced Feb 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant