提交 46ce75ed 编写于 作者: D DCloud_LXH

fix(mp): static asset path webpack5 fixed #4130 closed #4132

上级 5cbf21e9
......@@ -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)
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册