webpack-import-retry-plugin1

1.0.0 • Public • Published

使用方法

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 = '' // fallback 时要替换成的路径

Readme

Keywords

Package Sidebar

Install

npm i webpack-import-retry-plugin1

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

4.86 kB

Total Files

3

Last publish

Collaborators

  • duhongjun