webpack-cdn2local-plugin

1.2.2 • Public • Published

webpack plugin for download some remotes static resources to local.

HOW TO USE

INSTALL

npm install webpack-cdn2local-plugin -S

Quick Start

1.   add 'cdn="JSZXtrue"' in the script you need to Pull down from remote CDN or other location

EXAMPLE:

<script src="//at.alicdn.com/t/font_580979_7zusmqtgkt7.js" cdn="JSZXtrue"></script>
  1. update your webpack.config.js in the production mode

EXAMPLE:
    const Cdn2Local = require('webpack-cdn2local-plugin');
    plugins:[
        ...,
        new Cdn2Local()
     ]

Special Thanks

HankWangv5.

ZhangDongliang123.

YueQuanXiaoChe.

YuMay2009.

Package Sidebar

Install

npm i webpack-cdn2local-plugin

Weekly Downloads

0

Version

1.2.2

License

MIT

Unpacked Size

3.76 kB

Total Files

3

Last publish

Collaborators

  • ashen9
  • sugar0323
  • fullofcolor
  • yuequanxiaoche