Closed websharik closed 4 years ago
This works:
plugins: [
new JavaScriptObfuscator({
//...
}, ['scripts/vendors.js'])
]
Example is wrong, excludes is not filenames - its paths to dist files:
module.exports = {
entry: {
'abc': './test/input/index.js',
'cde': './test/input/index1.js'
},
output: {
path: 'dist',
filename: '[name].js' // output: abc.js, cde.js
},
plugins: [
new JavaScriptObfuscator({
rotateStringArray: true
}, ['abc.js'])
]
};
WebPackConfig: