webpack-plugin-cdn
v1.0.20
Published
Webpack CDN base calls the service
Downloads
48
Maintainers
Readme
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
Example
- Through "callback" parameter to achieve their own upload webpack-plugin-cdn-free
- Qiniu webpack-plugin-cdn-qiniu
- Upyun webpack-plugin-cdn-upyun
Questions & Suggestions
Please open an issue here.