Skip to content

Commit

Permalink
Merge pull request #1304 from didi/fix-root-view-srcmode-web
Browse files Browse the repository at this point in the history
输出web mpx-root-view添加class样式
  • Loading branch information
Blackgan3 authored Oct 24, 2023
2 parents 3807653 + 9a836b0 commit 8f74809
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/webpack-plugin/lib/style-compiler/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ module.exports = function (css, map) {
.process(css, options)
.then(result => {
// ali环境添加全局样式抹平root差异
if (mode === 'ali' && isApp) {
if ((mode === 'ali' || mode === 'web') && isApp) {
result.css += `\n.${MPX_ROOT_VIEW} { display: initial }\n.${MPX_APP_MODULE_ID} { line-height: normal }`
}

Expand Down

0 comments on commit 8f74809

Please sign in to comment.