webpack-obfuscator icon indicating copy to clipboard operation
webpack-obfuscator copied to clipboard

Is it possible to add an 'includes'

Open k713927 opened this issue 5 years ago • 4 comments

now has excludes,if can add 'includes' is very good ,thank you ,and this plugin is very good

k713927 avatar Aug 02 '20 07:08 k713927

excludes array uses minimatch under the hood. Try to use negate pattern with ! character.

This should exclude everything except some-file.js

['!/src/includes/some-file.js']

sanex3339 avatar Aug 21 '20 19:08 sanex3339

Ping

sanex3339 avatar Aug 25 '20 10:08 sanex3339

Does not seem to work for me using 2.6.0 and I can't upgrade atm because Vue CLI still uses Webpack 4. I resolved the inclusion issue by using a loader with a specific rule regex instead of the plugin.

kasparkallas avatar Jan 18 '21 09:01 kasparkallas

excludes array uses minimatch under the hood. Try to use negate pattern with ! character.

This should exclude everything except some-file.js

['!/src/includes/some-file.js']

this is wrong,the correct config:

['**', '!/src/includes/some-file.js']

witcsmartian avatar Jan 09 '24 09:01 witcsmartian