Skip to content

likun7981/react-app-rewire-dll

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-app-rewire-dll

Auto dll for react-app via react-app-rewired, use autodll-webpack-plugin

Install

$ npm install --save-dev react-app-rewire-dll

Usage

In the config-overrides.js for react-app-rewired add code

/* config-overrides.js */
const createRewireDll = require('react-app-rewire-dll');

module.exports = (config, env)=>{
  const rewireHost = createRewireDll(dllConfig);
  return rewireHost(config, env);
}

DllConfig

keyName type default description
entry Object {} The entry points for the DLL's.
path string '' The path for the DLL bundles, relative to webpack's output.publicPath
filename string [name].js The filename template.
Same as webpack's output.filename.
Examples:
[name]_[hash].dll.js

More detail config autodll-webpack-plugin

Note. only export entry,path,filename. Other options use default , you can't config in this rewire

License

MIT

About

Auto dll for react-app via react-app-rewired, use autodll-webpack-plugin

Resources

License

Stars

Watchers

Forks

Packages

No packages published