Skip to content

Moka-FE/webpack-import-retry-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

使用方法

import RetryPlugin from '@moka-fe/webpack-import-retry-plugin'

// with webpack-chain
chainWebpack(config) {
  config.plugin('retry').use(ImportRetry);

同时在 window 上挂载两个变量

window.PUCLIC_PATH = "xxx"; // 当前的 publicPath
window.CDN_FALLBACK_ORIGIN = "xxx"; // fallback 时要替换成的路径

About

auto retry webpack chunk when load failed.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published