Add autodll-webpack-plugin support.
This is useful to faster the webpack bundling time.
Also, it make the code structing cleaner by separating the vendor related codes from your source codes.
The pacakge specified in vendor
section of pacakge.json
would be bundled into static/js/vendor:[hash:8].js
.
Modify crs.config
as below.
const { compose } = require('create-react-scripts')
module.exports = compose(
...
require('create-react-scripts-dll')(/* options passed to autodll-webpack-plugin */),
);
Modify package.json
under your application folder
{
...
"vendor" [
"react",
"react-dom"
]
}