Thanks, this works, but my settings are actually much more extensive and throw the mentioned error about a syntax error in my code, while obfusction work on the website:
{
"compact":true,
"selfDefending":true,
"disableConsoleOutput":true,
"debugProtection":true,
"debugProtectionInterval":2000,
"splitStrings":false,
"splitStringsChunkLength":10,
"splitStringsChunkLengthEnabled":false,
"stringArray":true,
"stringArrayRotate":true,
"stringArrayRotateEnabled":true,
"stringArrayShuffle":true,
"stringArrayShuffleEnabled":true,
"simplify":true,
"stringArrayThreshold":1,
"stringArrayThresholdEnabled":true,
"stringArrayIndexesType":["hexadecimal-number"],
"stringArrayIndexShift":true,
"stringArrayCallsTransform":false,
"stringArrayCallsTransformThreshold":0.5,
"stringArrayEncoding":["base64"],
"stringArrayEncodingEnabled":true,
"stringArrayWrappersCount":1,
"stringArrayWrappersChainedCalls":true,
"stringArrayWrappersParametersMaxCount":2,
"stringArrayWrappersType":"variable",
"numbersToExpressions":false,
"sourceMap":false,
"sourceMapMode":"off",
"sourceMapBaseUrl":"",
"sourceMapFileName":"",
"domainLock":[".myDomain.com"],
"domainLockRedirectUrl":"about:blank",
"domainLockEnabled":true,
"forceTransformStrings":[],
"reservedNames":[],
"reservedStrings":[],
"seed":0,
"controlFlowFlatteningThreshold":1,
"controlFlowFlattening":true,
"deadCodeInjectionThreshold":0.4,
"deadCodeInjection":true,
"unicodeEscapeSequence":false,
"renameGlobals":false,
"renameProperties":false,
"renamePropertiesMode":"safe",
"target":"browser",
"identifierNamesGenerator":"hexadecimal",
"identifiersDictionary":[],
"identifiersPrefix":"",
"transformObjectKeys":true,
"ignoreImports":false,
"rotateStringArray":true,
"rotateStringArrayEnabled":true,
"shuffleStringArray":true,
"shuffleStringArrayEnabled":true,
"sourceMapSeparate":false
}