mmiller42 / html-webpack-externals-plugin

Webpack plugin that works alongside html-webpack-plugin to use pre-packaged vendor bundles.
MIT License
99 stars 16 forks source link

Support context in CopyWebpackPlugin #25

Closed BarinDwalin closed 6 years ago

BarinDwalin commented 7 years ago

Please add a context attribute to the CopyWebpackPlugin. In my case I need to change the node_modules path.

mmiller42 commented 6 years ago

@tsachis @DJPorv @BarinDwalin

Sorry for taking so long, but this is finally released in v3.7.0.

There is now the ability to specify cwpOptions on the top level config object, which forwards options in as the second parameter to the copy-webpack-plugin constructor, as well as to add/overwrite properties on each of the pattern objects passed in as the first parameter via cwpPatternConfig on each module entry point or supplement. See the readme for details and examples.