wosai-oss-webpack-plugin
Aliyun OSS suports for shouqianba
Last updated 10 months ago by xuyuanxiang .
MIT · Original npm · Tarball
$ cnpm install wosai-oss-webpack-plugin 
SYNC missed versions from official npm registry.

wosai-oss-webpack-plugin

webpack插件,用于将静态资源打包上传阿里云OSS。

上传失败则终止webpack构建流程,为解决Docker构建中,上传失败无感的问题。

安装

npm install wosai-oss-webpack-plugin --save

使用

webpack配置文件:

var WosaiOSSPlugin = require("wosai-oss-webpack-plugin");
module.exports = {
    output: {
        publicPath: "https://domain.com/p/a/t/h" // 域名或域名+路径
    },
    plugins: [
        // 其他插件
        new WosaiOSSPlugin({
            accessKeyId: '*****',
            accessKeySecret: '*****',
            region: 'oss-cn-hangzhou',
            bucket: '*****'
        })
        // 其他插件
    ]
}
Maintainers (1)
Downloads
Today 1
This Week 1
This Month 49
Last Day 0
Last Week 15
Last Month 205
Dependencies (4)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |