Closed erisvn closed 1 year ago
Could you provide more details on the error you got? @ERIS-VN
Issue with vue router
any help :<
I will take a look for you tomorrow
At a guess it's probably that nuxt can't handle the default obfuscation settings, it's not uncommon - you might wanna try playing with them to see what happens
I have tried many ways but it still doesn't work, I have also used some other rollup packages but they either don't obfuscate the script or have errors during the rollup process
If there is an error when trying to run the obfuscated code you will need to edit the obfuscator settings to make it change the code less
Going to close this for now, but another recommendation I just thought of would be only running this plugin during the build. Something like this:
import { obfuscator } from 'rollup-obfuscator';
export default defineNuxtConfig({
devtools: { enabled: true },
vite: {
build: {
rollupOptions: {
plugins: [obfuscator()]
}
}
}
})
I tried it with nuxt 3 but got an error, will it support nuxt 3 in the future