Closed Directory closed 3 years ago
this seems to work. only downside is you need to have your chunk always named the same. in my case i use chunkIds: 'deterministic'
so i hardcoded my vendor chunk id like this
new WebpackObfuscator({...}, ['456.*.js'])
You should be able to use something like this (works for me):
...
output: {
path: path.resolve(__dirname, '..', 'dist'),
filename: '[name].bundle.js',
},
optimization: {
splitChunks: {
chunks: 'all',
name: 'vendor'
}
},
plugins: [
new WebpackObfuscator ({
rotateStringArray: true
}, ['vendor.bundle.js'])
]
...
This was asked in #109 but nobody answered. i can not use the loader i have to use the plugin. how can i exclude
node_modules
like i do with loaders?