Skip to content

wufu-fire/alioss-upload-symlink

Repository files navigation

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"
}

About

upload and set symlind for alioss

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published