1.0.20 • Published 4 years ago

webpack-plugin-cdn v1.0.20

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

webpack-plugin-cdn

Webpack CDN base calls the service and needs to implement the upload logic itself, "Example" provides some support

Install

$ npm i webpack-plugin-cdn --save-dev

Development

constructor({
    outProgress: function(fileName,localFilePath){}; // Receive the callback method
    publicPath: "http://example.com"; // The address of the common part CDN
    prefixPath: new Date().getTime(); // If you need to add a variable prefix to the CDN
    ignorePath: ".cdnignore"; // ignore custom
})

ignore

If need to use the CDN file exclusion. You need to create a new file ".cdnignore"

./.cdnignore

static/img/*
Exclude the rules:[here](https://git-scm.com/docs/gitignore)

## Example

- Through "callback" parameter to achieve their own upload      [webpack-plugin-cdn-free](https://www.npmjs.com/package/webpack-plugin-cdn-free)
- Qiniu [webpack-plugin-cdn-qiniu](https://www.npmjs.com/package/webpack-plugin-cdn-qiniu)
- Upyun [webpack-plugin-cdn-upyun](https://www.npmjs.com/package/webpack-plugin-cdn-upyun)

## Questions & Suggestions

Please open an issue [here](https://github.com/MicahChiu/webpack-plugin-cdn/issues).

## License

[MIT](LICENSE)
1.0.20

4 years ago

1.0.19

4 years ago

1.0.18

5 years ago

1.0.17

5 years ago

1.0.16

5 years ago

1.0.15

5 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago