-
Notifications
You must be signed in to change notification settings - Fork 12
Description
devDependencies:
@nuxt/devtools 1.0.8 @unocss/nuxt 0.57.7 eslint 8.56.0 nuxt-swiper 1.2.2 vite-plugin-javascript-obfuscator 3.1.0
@nuxtjs/device 3.1.1 @vite-pwa/nuxt 0.6.0 eslint-config-prettier 8.10.0 prettier 2.8.8 vue 3.4.14
@nuxtjs/eslint-config-typescript 12.1.0 @vueuse/nuxt 10.7.2 eslint-plugin-nuxt 4.0.0 sass 1.69.7 vue-tsc 1.8.27
@nuxtjs/sitemap 5.0.4 @zadigetvoltaire/nuxt-gtm 0.0.13 eslint-plugin-prettier 4.2.1 sass-loader 13.3.3
@unocss/eslint-config 0.56.5 consola 3.2.3 nuxt 3.9.2 typescript 5.3.3
nuxt.config.ts
export default defineNuxtConfig({
vite: {
plugins: [
obfuscatorPlugin({
apply: 'build',
debugger: true,
exclude: [
/node_modules/,
/paths\.mjs/,
/components\.plugin\.mjs/,
/unocss\.mjs/,
/plugins\/lazy.ts/,
/app.config.mjs/,
],
options: {
compact: true,
controlFlowFlattening: true,
controlFlowFlatteningThreshold: 0.75,
numbersToExpressions: true,
simplify: true,
stringArrayShuffle: true,
splitStrings: true,
splitStringsChunkLength: 10,
rotateUnicodeArray: true,
deadCodeInjection: true,
deadCodeInjectionThreshold: 0.4,
debugProtection: true,
debugProtectionInterval: 2000,
disableConsoleOutput: true,
domainLock: [],
identifierNamesGenerator: 'hexadecimal',
identifiersPrefix: '',
inputFileName: '',
log: true,
renameGlobals: true,
reservedNames: [],
reservedStrings: [],
seed: 0,
selfDefending: true,
sourceMap: false,
sourceMapBaseUrl: '',
sourceMapFileName: '',
sourceMapMode: 'separate',
stringArray: true,
stringArrayEncoding: ['base64'],
stringArrayThreshold: 0.75,
target: 'browser',
transformObjectKeys: true,
unicodeEscapeSequence: true,
domainLockRedirectUrl: 'about:blank',
forceTransformStrings: [],
identifierNamesCache: null,
identifiersDictionary: [],
ignoreImports: true,
optionsPreset: 'default',
renameProperties: false,
renamePropertiesMode: 'safe',
sourceMapSourcesMode: 'sources-content',
stringArrayCallsTransform: true,
stringArrayCallsTransformThreshold: 0.5,
stringArrayIndexesType: ['hexadecimal-number'],
stringArrayIndexShift: true,
stringArrayRotate: true,
stringArrayWrappersCount: 1,
stringArrayWrappersChainedCalls: true,
stringArrayWrappersParametersMaxCount: 2,
stringArrayWrappersType: 'variable',
},
}),
],
},
})