Skip to content

Commit

Permalink
fix(mp): static asset path webpack5 fixed dcloudio#4130 closed dcloud…
Browse files Browse the repository at this point in the history
  • Loading branch information
StrivingRabbit committed Apr 7, 2023
1 parent 5cbf21e commit 46ce75e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vue-cli-plugin-uni/lib/chain-webpack.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ module.exports = function chainWebpack (platformOptions, vueOptions, api) {
const keys = ['publicPath', 'outputPath']
keys.forEach(key => {
generator[key] = pathData => {
const outputPath = oldOptions.outputPath(null, pathData.module.request)
const outputPath = oldOptions[key](null, pathData.module.request)
const basename = path.basename(outputPath)
return outputPath.substring(0, outputPath.length - basename.length)
}
Expand Down

0 comments on commit 46ce75e

Please sign in to comment.