postcss-imgpost-alioss

> 下载 ```bash npm i postcss-imgpost-alioss -D 或 yarn add postcss-imgpost-alioss --dev ``` > 使用方法和postcss插件一样

Usage no npm install needed!

<script type="module">
  import postcssImgpostAlioss from 'https://cdn.skypack.dev/postcss-imgpost-alioss';
</script>

README

Usage

下载

npm i postcss-imgpost-alioss -D 或 yarn add postcss-imgpost-alioss --dev

使用方法和postcss插件一样

配置

const options = {
    // required
    accessKeyId: 'your ali accessKeyId',
    accessKeySecret: 'your ali accessKeySecret',
    region: 'your ali region',
    bucket: 'your ali bucket',
    // not required
    https: true,
    domain: 'your hostname', // eg: 'hostname.com/'
    name: 'your filename' // eg: 'filename/'
}