Skip to content

自动上传css中的背景图片到阿里云oss服务器,并替换成线上路径

Notifications You must be signed in to change notification settings

yifeinianshao/postcss-imgpost-alioss

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/'
}

About

自动上传css中的背景图片到阿里云oss服务器,并替换成线上路径

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published