Skip to content

Commit

Permalink
fix: normalize path
Browse files Browse the repository at this point in the history
  • Loading branch information
xiankq committed Dec 27, 2023
1 parent c6eabe6 commit debd77d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export default function vitePluginAliOss (options) {
const startTime = new Date().getTime()

for (const fileFullPath of files) {
const filePath = fileFullPath.split(outDirPath)[1] // eg: '/assets/vendor.bfb92b77.js'
const filePath = normalizePath(fileFullPath).split(outDirPath)[1] // eg: '/assets/vendor.bfb92b77.js'

const ossFilePath = ossBasePath.replace(/\/$/, '') + filePath // eg: '/base/assets/vendor.bfb92b77.js'

Expand Down

0 comments on commit debd77d

Please sign in to comment.