Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 680 Bytes

README.md

File metadata and controls

25 lines (16 loc) · 680 Bytes

Webpack Config

Webpack config for WordPress development.

Installation

Install the module

npm install @wordpress/webpack-config --save-dev

Usage

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
} );



Code is Poetry.