oss-upload-webpack-plugin

0.0.4 • Public • Published

Install

npm i oss-upload-webpack-plugin -D

Useages

module.exports = {
    output: {
        publicPath: "https://domain.com/p/a/t/h" // 域名或域名+路径
    },
    plugins: [
        // 其他插件
        new WosaiOSSPlugin({
            accessKeyId: '*****',
            accessKeySecret: '*****',
            region: 'oss-cn-hangzhou',
            bucket: '*****',
            beforeUpload: (file,compilation)=>{ // 上传之前dosomething
                const files = {}
                return files
            },
            afterUpload: ()=>{ // 上传之后dosomething

            }
        })
        // 其他插件
    ]
}

Readme

Keywords

Package Sidebar

Install

npm i oss-upload-webpack-plugin

Weekly Downloads

1

Version

0.0.4

License

ISC

Unpacked Size

4.45 kB

Total Files

3

Last publish

Collaborators

  • chaofa