1.0.8 • Published 2 years ago

umi-plugin-marmot v1.0.8

Weekly downloads
21
License
MIT
Repository
-
Last release
2 years ago

umi-plugin-marmot

Upload asserts to ali oss by marmot client when built

Usage

yarn add umi-plugin-marmot --dev
npm install umi-plugin-marmot --save-dev

Configure in .umirc.production.ts

This plugin works when the environment NODE_ENV setted by production. By the way,if you set environment variable UPLOAD_CDN disabled, this plugin will be disabled.

optionnot nulldescription
accessKeyIdtrueIt should be unique, and you should get one from zyh or txy.
accessKeySecrettrueIt should be unique, and you should get one from zyh or txy.
storagePathfalseIt should be unique, and you should get one from zyh or txy. It's optional, so you can just not pass it
excludefalseRegular expression to decide which files to ignore. It's optional, so you can just not pass it, and the plugin will exclude only html files
includefalseRegular expression to decide which files to built. It's optional, so you can just not pass it, and the plugin will include all the files, include will work only after the exclude has done its job
export default {
  marmot: {
    accessKeyId: 'id',
    accessKeySecret: 'secret',
    storagePath: 'storage/path',
  },
};

Publish

# 1. update version
$ npm version minor

# 2. update patch version
$ npm version patch

# 3. publish
$ npm publish
1.0.8

2 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago