Closed setube closed 1 month ago
可以暂时先这么配置来用。之后会改进这块,支持类似 /node_modules/,node_modules/**,node_modules 这种配置
// vite.config.js
import obfuscatorPlugin from 'vite-plugin-bundle-obfuscator';
export default defineConfig({
plugins: [
obfuscatorPlugin({
excludes: ['vendor-modules'],
})
],
build: {
rollupOptions: {
output: {
manualChunks(id) {
if (id.includes('node_modules')) {
return 'vendor-modules';
}
},
},
},
}
})
那跟我目前差不多,更新了踢我一脚
那跟我目前差不多,更新了踢我一脚
好的👌
我尝试在
excludes
里使用/node_modules/
,node_modules/**
,node_modules
都不行