1.0.20 • Published 5 years ago
webpack-plugin-cdn v1.0.20
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
5 years ago
1.0.19
5 years ago
1.0.18
6 years ago
1.0.17
6 years ago
1.0.16
6 years ago
1.0.15
6 years ago
1.0.14
6 years ago
1.0.13
6 years ago
1.0.11
6 years ago
1.0.10
6 years ago
1.0.8
6 years ago
1.0.7
6 years ago
1.0.6
6 years ago
1.0.5
6 years ago
1.0.4
6 years ago
1.0.3
6 years ago
1.0.2
6 years ago
1.0.1
6 years ago
1.0.0
6 years ago