rollup-plugin-alioss-upload
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

rollup-plugin-alioss-upload

Will upload rollup bundle output and all js files to Ali OSS.

Usage

Add to rollup config:

import aliossUpload from "./rollup/rollup-plugin-alioss-upload";
 
export default {
    plugins:
    [
        aliossUpload(),
        // also accepts config file name as a parameter
        // aliossUpload({ configFile: ".alioss.config.json" })
        // this overrides cmd line option
    ],
};
 

Create configuration file:

{
    "accessKeyId": "Your accessKeyId",
    "accessKeySecret": "Your accessKeySecret",
    "region": "Your region",
    "bucket": "Your bucket"
}

Run the build

rollup -c rollup.config.js --alioss .alioss.config.json

Readme

Keywords

none

Package Sidebar

Install

npm i rollup-plugin-alioss-upload

Weekly Downloads

3

Version

0.0.2

License

WTFPL

Last publish

Collaborators

  • fireyy