Skip to content
This repository has been archived by the owner on Feb 15, 2025. It is now read-only.

Commit

Permalink
Always add CopyPlugin when webpack.copy config is provided
Browse files Browse the repository at this point in the history
Fixes #431
  • Loading branch information
insin committed Mar 15, 2018
1 parent 2f933ab commit 7de9145
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Unreleased (in `master`)

## Fixed

- Always add `CopyPlugin` when [`webpack.copy` config](https://github.com/insin/nwb/blob/master/docs/Configuration.md#copy-array--object) is provided [[#431](https://github.com/insin/nwb/issues/431)]

## Dependencies

- opn: v5.2.0 → [v5.3.0](https://github.com/sindresorhus/opn/compare/v5.2.0...v5.3.0)
Expand Down
2 changes: 1 addition & 1 deletion src/createWebpackConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ export function createPlugins(
}

// Copy static resources
if (buildConfig.copy) {
if (buildConfig.copy || userConfig.copy) {
plugins.push(new CopyPlugin(
...getCopyPluginArgs(buildConfig.copy, userConfig.copy)
))
Expand Down

0 comments on commit 7de9145

Please sign in to comment.