bower-webpack-plugin
bower-webpack-plugin copied to clipboard
Ecludes does not seem to work
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
}),
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.