@jswork/craco-plugin-dll-refs
v1.0.9
Published
Craco plugin for webpack.DllReferencePlugin.
Downloads
3
Readme
craco-plugin-dll-refs
Craco plugin for webpack.DllReferencePlugin.
installation
npm install @jswork/craco-plugin-dll-refs
usage
import cracoPluginDllRefs from '@jswork/craco-plugin-dll-refs';
// usage goes here.
usage with hmr
# 组合1: HRM + disabled dll-refs
# 特点: 启动慢,但支持HMR,开发体验更好<默认为true,所以这个也不用写>
FAST_REFRESH = true
# craco.config.js<options: 默认可以不写>
{ plugin: dllRefs, options: {inject: false} }
## 组合2: refresh + enable dll-refs
# 特点: 启动快,但不支持HMR,对于表单应用体验有点差,但问题较少,占内存较大
FAST_REFRESH = false
# craco.config.js
{ plugin: dllRefs, options: { inject: true } }
license
Code released under the MIT license.