1.2.4 • Published 4 years ago

vue-cli-plugin-upload-qiniu v1.2.4

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago
  npm i --save-dev upload-to-qiniu-webpack-plugin

webpack.config.js

const UploadToQiniuWebpackPlugin = require('upload-to-qiniu-webpack-plugin');

module.exports = {
  entry: 'index.js',
  output: {
    path: __dirname + '/dist',
    filename: 'index_bundle.js'
  },
  plugins: [
    new UploadToQiniuWebpackPlugin({
        qiniuAccessKey: 'ARA9LIvdx3JFZyADmwohmNSIjVxgpzIA4',
        qiniuSecretKey: 'aK19LEtOfStwsvn5TqkVFnbzxlI5FNU7',
        qiniuBucket: 'bucket-test',
        qiniuZone: 'Zone_z0',
    })
  ]
}

You can pass a hash of configuration options to upload-to-qiniu-webpack-plugin. Allowed values are as follows

NameTypeDefaultDescription
qiniuAccessKey{String}nullYour Qiniu AccessKey
qiniuSecretKey{String}nullYour Qiniu SecretKey
qiniuBucket{String}nullYour Qiniu Bucket Name
qiniuZone{String}nullYour Qiniu zone code
enabledRefresh{Boolean}falseIs enable refresh the file on Qiniu Clound after file upload
excludeHtml{Boolean}trueIs exclude html file
onlyRefreshHtml{Boolean}falseonly refresh html file (eg: /demo/index.html + /demo/), throws an exception in the case of a failure.
prefixPath{String}-prefix path for the file
uploadLogPath{String}webpackConfig.contextProvide a directory where log file should be stored
uploadTaget{String}webpackConfig.output.pathThe target file/folder to upload

About Zone:

Namevalue
华东"Zone_z0"
华北"Zone_z1"
华南"Zone_z2"
北美"Zone_na0"
1.2.4

4 years ago

1.1.4

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago