Custom CopyPlugin to copy public folder contents #1673
Replies: 1 comment
-
const copyIndex = newWebpackConfig.plugins.findIndex((item) => item.constructor.name === 'CopyPlugin');
newWebpackConfig.plugins.splice(copyIndex, 1); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
fivethreeo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
❓Question
Is it possible to remove the CopyPlugin from createConfigAsync.js and create my own?
Could that be done with the razzle.config.js and if so how would i go about that?
I know i can get the plugins inside midifyWebpackConfig(opts) with opts.webpackConfig.plugins but i have no idea how detect which plugin inside the array is the CopyPlugin.
Any help is welcome.
My current code
Beta Was this translation helpful? Give feedback.
All reactions