Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
fxy060608 committed Apr 19, 2024
1 parent 97fa4a3 commit 932d04b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion packages/uni-template-compiler/lib/h5.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const getCompilerOptions = require('./mp.js');
const getCompilerOptions = require('./mp.js')
const TAGS = {
br: 'view',
hr: 'view',
Expand Down
20 changes: 10 additions & 10 deletions packages/vue-cli-plugin-uni/lib/chain-webpack.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,16 +106,16 @@ module.exports = function chainWebpack (platformOptions, vueOptions, api) {
})
}
} else {
if (langRule.oneOf(type).uses.has('extract-css-loader')){
langRule.oneOf(type)
.use('extract-css-loader')
.tap(options => {
// 参考 https://github.com/vuejs/vue-cli/commit/b41ed76c5ce54c618587f24b9d14c35cf31a96d4
// 修复 部分平台 css 内的资源路径不正确,如uni-icons在百度小程序上引用的字体文件路径
if (options) options.publicPath = '/'
return options
})
}
if (langRule.oneOf(type).uses.has('extract-css-loader')) {
langRule.oneOf(type)
.use('extract-css-loader')
.tap(options => {
// 参考 https://github.com/vuejs/vue-cli/commit/b41ed76c5ce54c618587f24b9d14c35cf31a96d4
// 修复 部分平台 css 内的资源路径不正确,如uni-icons在百度小程序上引用的字体文件路径
if (options) options.publicPath = '/'
return options
})
}
}
langRule.oneOf(type)
.use('uniapp-preprocss')
Expand Down

0 comments on commit 932d04b

Please sign in to comment.