alioss-upload-symlink
v0.2.0
Published
```js yarn add alioss-upload-symlink -d ``` or ```js npm install alioss-upload-symlink -D ```
Downloads
9
Readme
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"
}