@hadeshe93/wpconfig-mw-react17
v1.0.0
Published
A middleware should be used with `webpack-chain` in order to support the app project based on `react`.
Downloads
6
Readme
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 --saveUsage
// 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();
// ...