diff --git a/webpack.config.extensions.js b/webpack.config.extensions.js index 7340d6e2d49eb..a9535b76810d0 100644 --- a/webpack.config.extensions.js +++ b/webpack.config.extensions.js @@ -65,8 +65,10 @@ const webpackConfig = getBaseWebpackConfig( null, { 'output-path': path.join( __dirname, '_inc', 'blocks' ), } ); -module.exports = _.merge( {}, webpackConfig, { +module.exports = { + ...webpackConfig, plugins: [ + ...webpackConfig.plugins, new CopyWebpackPlugin( [ { from: presetPath, @@ -74,4 +76,4 @@ module.exports = _.merge( {}, webpackConfig, { }, ] ), ], -} ); +};