bower-webpack-plugin icon indicating copy to clipboard operation
bower-webpack-plugin copied to clipboard

Ecludes does not seem to work

Open jusefb opened this issue 9 years ago • 1 comments

Hi,

I am trying to exclude 'angular' from being loaded via the BowerWebpackPlugin in favour of using the npm package, but for some reason this does not seem to work. The 'excludes' regular expression seems to be ignored and the package still loads via bower.

        new BowerWebpackPlugin({
            modulesDirectories: ["js/libs/bower_components"],
            manifestFiles: "bower.json",
            includes: /.*/,
            excludes: [/angular/],
            searchResolveModulesDirectories: false
        }),

jusefb avatar Jan 07 '16 11:01 jusefb

Documentation isn't clear. The example passes a RegEx straight to the key excludes, but other parts says it expects an array. There isn't a proper example for if the array should hold regex or string of regexes.

dagumak avatar Jul 18 '16 08:07 dagumak