Skip to content

Latest commit

 

History

History
34 lines (30 loc) · 597 Bytes

README.md

File metadata and controls

34 lines (30 loc) · 597 Bytes

Install

yarn add alioss-upload-symlink -d

or

npm install alioss-upload-symlink -D

Usage

create a config file in the root directory, for example: ali-oss-config.js

const {
    BUCKET, REGION, ACCESSKEYID, ACCESSKEYSECRET,
} = process.env;

const ossInfo = {
    bucket: BUCKET,
    region: REGION,
    accessKeyId: ACCESSKEYID,
    accessKeySecret: ACCESSKEYSECRET,
    output?: 'dist',
    isSetSymlink?: false
};

module.exports = ossInfo;

add a script to package.json

"scripts": {
    "publish": "oss-publish --config ali-oss-config.js"
}