Skip to content

Commit

Permalink
Fix: Correct Usage of CleanWebpackPlugin (#1565)
Browse files Browse the repository at this point in the history
I was still using an option that no longer exists. Fixed to mimic the original behavior. The option `root` was removed in v2, but wasn't changed during the upgrade in 9804259

It's deleting everything in the styleguidistDir folder which isn't the way it was before.
After this change it only deletes files in build/.
  • Loading branch information
Lazyuki committed Mar 20, 2020
1 parent 83fdb94 commit 3469cbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/make-webpack-config.ts
Expand Up @@ -98,7 +98,7 @@ export default function(
},
plugins: [
new CleanWebpackPlugin({
root: config.styleguideDir,
cleanOnceBeforeBuildPatterns: [`${config.styleguideDir}/build/**/*`],
verbose: config.verbose === true,
} as any),
],
Expand Down

0 comments on commit 3469cbb

Please sign in to comment.