qiniu-s-webpack-plugin
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

qiniu-s-webpack-plugin

将打包好的静态资源上传至七牛

安装

npm install -D qiniu-s-webpack-plugin

or 

yarn add -D qiniu-s-webpack-plugin

使用

const QiniuWebpackPlugin = require('qiniu-s-webpack-plugin');

module.exports = {
  entry: 'index.js',
  output: {
    path: path.resolve(__dirname, './dist'),
    filename: 'index_bundle.js',
  },
  plugins: [
    new QiniuWebpackPlugin({
      ...
    })
  ],
};

Options

Name Type Default Required Description
accessKey string '' true 七牛 Access Key
secretKey string '' true 七牛 Secret Key
bucket string '' true 七牛 空间名
forceDelete boolean false false 上传文件前,先强制删除之前上传七牛云上的文件

/qiniu-s-webpack-plugin/

    Package Sidebar

    Install

    npm i qiniu-s-webpack-plugin

    Weekly Downloads

    0

    Version

    1.0.0

    License

    ISC

    Unpacked Size

    6.73 kB

    Total Files

    6

    Last publish

    Collaborators

    • 1035901787