Skip to content

Commit

Permalink
修改默认域名
Browse files Browse the repository at this point in the history
  • Loading branch information
deng-yc committed Aug 5, 2019
1 parent 4a3986c commit e6d67de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ module.exports = postcss.plugin('postcss-cos', opts => {
const hash = md5File.sync(full_path);
var key = `${opts.path || 'weapp'}/${hash}`;
uploadList.push(uploadFile(key, full_path, 3));
var url = `https://${bucket}.cos-website.${region}.myqcloud.com/${key}`;
var url = `https://${bucket}.cos.${region}.myqcloud.com/${key}`;
if (opts.cdnDomain) {
url = `${opts.cdnDomain}/` + key
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "postcss-cos",
"version": "0.0.2",
"version": "0.0.3",
"description": "postcss插件,将css中的background图片上传到腾讯云服务器",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit e6d67de

Please sign in to comment.