Skip to content

Commit

Permalink
change color lib
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaweiss committed May 25, 2022
1 parent 0a43e30 commit 1900958
Show file tree
Hide file tree
Showing 5 changed files with 219 additions and 3,382 deletions.
6 changes: 3 additions & 3 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
"serve": "vite preview"
},
"dependencies": {
"vue": "^3.2.31"
"vue": "^3.2.36"
},
"devDependencies": {
"@vitejs/plugin-vue": "^2.2.0",
"vite": "^2.8.2",
"@vitejs/plugin-vue": "^2.3.3",
"vite": "^2.9.9",
"vite-plugin-ali-oss": "workspace:*"
}
}
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const colors = require('colors')
const chalk = require('chalk')
const glob = require('glob')
const path = require('path')
const OSS = require('ali-oss')
Expand Down Expand Up @@ -59,7 +59,7 @@ module.exports = function vitePluginAliOss (options) {

const completePath = ossOrigin + ossFilePath // eg: 'https://foo.com/base/assets/vendor.bfb92b77.js'

const output = `${buildConfig.outDir + filePath} => ${colors.green(completePath)}`
const output = `${buildConfig.outDir + filePath} => ${chalk.green(completePath)}`

if (options.test) {
console.log(`test upload path: ${output}`)
Expand All @@ -79,7 +79,7 @@ module.exports = function vitePluginAliOss (options) {
} else {
try {
await client.head(ossFilePath);
console.log(`${colors.grey('files exists')}: ${output}`)
console.log(`${chalk.grey('files exists')}: ${output}`)

} catch (error) {
if (error.code === 'NoSuchKey') {
Expand Down
Loading

0 comments on commit 1900958

Please sign in to comment.