Skip to content

Commit

Permalink
fix: 修复 VueFilenameInjector 配置
Browse files Browse the repository at this point in the history
  • Loading branch information
Aysnine committed Feb 17, 2020
1 parent 35da730 commit e5a077c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,9 @@ module.exports = {
config => config.devtool('cheap-source-map')
)
// 预览环境构建 vue-loader 添加 filename
.when(process.env.VUE_APP_SCOURCE_LINK === 'TRUE',
VueFilenameInjector(config, {
.when(
process.env.VUE_APP_SCOURCE_LINK === 'TRUE',
config => VueFilenameInjector(config, {
propName: process.env.VUE_APP_SOURCE_VIEWER_PROP_NAME
})
)
Expand Down

0 comments on commit e5a077c

Please sign in to comment.