@tuia/oss-webpack-plugin

1.0.3 • Public • Published

推啊系统后台自动上传工具

Usage

  1. package.json
  "@tuia/oss-webpack-plugin":"^1.0.2"
  1. 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()
})()
  1. 直接从tuia-auto-upload迁移:
// step1
const TuiaAutoUpload = require('tuia-auto-upload');

const OssWebpackPlugin = require('@tuia/oss-webpack-plugin');
// step2
new TuiaAutoUpload

new OssWebpackPlugin

Readme

Keywords

none

Package Sidebar

Install

npm i @tuia/oss-webpack-plugin

Weekly Downloads

1

Version

1.0.3

License

ISC

Unpacked Size

4.2 kB

Total Files

3

Last publish

Collaborators

  • any-u
  • dinglh
  • candy_dd
  • wintersun97
  • tump
  • inuanfeng
  • zhoucheng
  • zhangmin173
  • aiduck
  • chao.zhou
  • babalk
  • leitingting
  • nbseven
  • linhao-vue
  • liusandy