Webpack config for WordPress development.
Install the module
npm install @wordpress/webpack-config --save-dev
This is how to extend the default WordPress config for Webpack. You have to create your own webpack.config.js
file in the root of your project, import the config and extend it with your custom settings as follows:
const { config } = require( '@wordpress/webpack-config' );
module.exports = Object.assign( {}, config, {
// apply your changes here
} );