1.0.0 • Published 1 year ago
@hadeshe93/wpconfig-mw-react17 v1.0.0
A middleware should be used with webpack-chain
in order to support the app project based on react
.
Installation
$ npm install @hadeshe93/wpconfig-mw-react17 --save
Usage
// use it in esm
import ChainConfig from 'webpack-chain';
import getMWReact17 from '@hadeshe93/wpconfig-mw-react17'
// return a WebpackChainConfig instance
const chainConfig = getMWReact17()(
new ChainConfig()
);
// get config in json format
const webpackConfig = chainConfig.toConfig();
// ...