@tuia/oss-webpack-plugin
v1.0.3
Published
推啊系统后台自动上传工具
Downloads
2
Maintainers
Keywords
Readme
推啊系统后台自动上传工具
Usage
- package.json
"@tuia/oss-webpack-plugin":"^1.0.2"
- build/build.js
const path = require('path');
const OssWebpackPlugin = require('@tuia/oss-webpack-plugin');
(async () => {
const uploader = await new OssWebpackPlugin({
dir: path.join(__dirname, '../dist/'),
originDir: '/tuia/dist/'
})
await uploader.start()
})()
- 直接从tuia-auto-upload迁移:
// step1
const TuiaAutoUpload = require('tuia-auto-upload');
↓
const OssWebpackPlugin = require('@tuia/oss-webpack-plugin');
// step2
new TuiaAutoUpload
↓
new OssWebpackPlugin