@jswork/craco-plugin-dll-refs
TypeScript icon, indicating that this package has built-in type declarations

1.0.9 • Public • Published

craco-plugin-dll-refs

Craco plugin for webpack.DllReferencePlugin.

version license size download

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @jswork/craco-plugin-dll-refs

Homepage

js.work

Weekly Downloads

2

Version

1.0.9

License

MIT

Unpacked Size

8.55 kB

Total Files

6

Last publish

Collaborators

  • afeiship