build-upload-qiniu
v1.0.15
Published
> npm install build-ipload-qiniu > > const BuildAndUpload from 'build-ipload-qiniu' ``` new BuildAndUpload({ isServer: config.name === 'client', // 单页面打包直接写false 或者不写 client: config.name, // 暂时不用 key_prefix: '_next/static/', // 前缀,前面的 / 不需要写 uplo
Downloads
5
Readme
npm install build-ipload-qiniu
const BuildAndUpload from 'build-ipload-qiniu'
new BuildAndUpload({
isServer: config.name === 'client', // 单页面打包直接写false 或者不写
client: config.name, // 暂时不用
key_prefix: '_next/static/', // 前缀,前面的 / 不需要写
uploadPath: path.join(__dirname, 'dist/static'), //上传路径,必传
overwrite: true, // 是否覆盖上传
qiniu: {
ak: 'xxxxx',
sk: 'xxxx',
bucket: 'bucket',
qiniu_name: '[email protected]'
}
})
```# build-upload-qiniu