Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
webpack-aliyun-oss
Advanced tools
A webpack plugin to upload assets to aliyun oss
一个webpack插件,上传资源到阿里云cdn
$ npm i webpack-aliyun-oss -S
from
: 从哪里取文件上传,默认为output.path下所有的文件。支持类似gulp.src的glob方法,如'./build/**', 可以为glob字符串或者数组。dist
: 上传到哪个目录下,默认为根目录。region
: 阿里云上传区域accessKeyId
: 阿里云的授权accessKeyIdaccessKeySecret
: 阿里云的授权accessKeySecretbucket
: 上传到哪个bucketdeletOrigin
: 上传完成是否删除原文件,默认falsesetHeaders
: 配置headersconst WebpackAliyunOss = require('webpack-aliyun-oss')
const webpackConfig = {
// ... 省略其他
plugins: [new WebpackAliyunOss({
from: ['./build/**', '!./build/**/*.html'],
dist: 'path/in/alioss',
region: 'your region',
accessKeyId: 'your key',
accessKeySecret: 'your secret',
bucket: 'your bucket',
deleteOrigin: false,
setHeaders(filePath) {
return {
'Cache-Control': 'max-age=31536000'
}
}
})]
}
FAQs
a webpack(version>=4) plugin to upload assets to aliyun oss, can be used with or without webpack.
The npm package webpack-aliyun-oss receives a total of 16 weekly downloads. As such, webpack-aliyun-oss popularity was classified as not popular.
We found that webpack-aliyun-oss demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.