0.0.2 • Published 6 years ago

rollup-plugin-alioss-upload v0.0.2

Weekly downloads
1
License
WTFPL
Repository
-
Last release
6 years ago

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