Skip to content

Commit

Permalink
Extensions: Fix webpack config (#11967)
Browse files Browse the repository at this point in the history
  • Loading branch information
ockham authored and sirreal committed Apr 9, 2019
1 parent a18ed0b commit 9ef4f37
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions webpack.config.extensions.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,15 @@ 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,
to: 'index.json',
},
] ),
],
} );
};

0 comments on commit 9ef4f37

Please sign in to comment.