webpack-plugin-cdn-qiniu weekly downloads statistics
By MicahChiu · npm · Webpack plugins
webpack-plugin-cdn-qiniu
webpack-plugin-cdn-qiniu has 75 recorded weekly downloads on npm, an increase of 226% over the past 30 days, ranking #2684 of 3,247 tracked listings.
About webpack-plugin-cdn-qiniu
webpack-plugin-cdn-qiniu
webpack将输出文件传到七牛云服务的封装
Install
$ npm i webpack-plugin-cdn-qiniu --save-dev
Conifg
const webpack = require('webpack'); //to access built-in plugins
const QiniuCdnWebpack = require('webpack-plugin-cdn-qiniu')
module.exports = {
module: {
rules: [
{ test: /\.txt$/, use: 'raw-loader' }
]
},
plugins: [
new QiniuCdnWebpack({
cdn:{
access_key:"access_key", // 七牛的access_key
secret_key:"secret_key", // 七牛的secret_key
bucket:"bucket" // 七牛的bucket
},
publicPath: "http://example.com", //七牛绑定的顶级域名地址
prefixPath: "prefixPath", // 需要往cdn传递的url公共前缀
})
...
]
};
如果遇到上传失败请尝试自定义上传配置
const QiniuCdnWebpack = require('webpack-plugin-cdn-qiniu')
const qiniu = require('qiniu')
module.exports = {
module: {
rules: [
{ test: /\.txt$/, use: 'raw-loader' }
]
},
plugins: [
new QiniuCdnWebpack({
cdn:{
options: {
zone: qiniu.zone.Zone_z1
...
}
...
},
...
})
...
]
};
ignore
如果想排除个别文件不容许上传到cdn
- 项目的根路径下新建文件:“.cdnignore” 规则和.gitignore是一样的
- 注意配置的路径是项目的根路径。
例子:
index.html
dist/statis/*
Introduction
- 本插件仅支持一个cdn顶级地址。
- 或许会存在前缀配置和域名配置失效的问题,使用中出现问题请务必:issue
- 本插件现有策略会在一旦发生任意某种原因失败则整个过程中断,保证发版的质量。
- 如果遇到打包输出并没有完全根据配置的扩展生成,需要自行检验下是否真的缺失了。
Questions & Suggestions
Please open an issue here.
License
Description from the npm listing.
- webpack-plugin
- webpack-plugin-cdn
- webpack-cdn-plugin
- cdn-webpack-plugin
- webpack-plugin-qiniu
- webpack-plugin-cdn-qiniu
- webpack-qiniu
- cdn
- webpack
- plugin
- qiniu
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (592)Similar npm Webpack plugins plugins
All 20 webpack-plugin-cdn-qiniu alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/webpack-plugin-cdn-qiniu. First seen Oct 16, 2026; last successful collection Oct 21, 2026. See the methodology.