File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -190,6 +190,7 @@ checkbox {
190190 align-items : center;
191191}
192192
193+ /* #ifdef MP-WEIXIN */
193194/*
194195 * 目前仅适配微信小程序,其他小程序平台需要额外适配
195196 */
@@ -200,4 +201,5 @@ radio .wx-radio-wrapper{
200201 justify-content : inherit;
201202 align-items : inherit;
202203 flex : 1 ;
203- }
204+ }
205+ /* #endif */
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import {
1212 parseManifestJsonOnce ,
1313 parseRpx2UnitOnce ,
1414 parseUniXFlexDirection ,
15+ preCss ,
1516 resolveBuiltIn ,
1617 resolveVueI18nRuntime ,
1718} from '@dcloudio/uni-cli-shared'
@@ -266,9 +267,9 @@ export function uniMiniProgramPlugin(
266267}
267268
268269export function genUVueCssCode ( manifestJson : Record < string , any > ) {
269- let cssCode = fs . readFileSync (
270- path . resolve ( __dirname , '../../lib/uvue.css' ) ,
271- 'utf8 '
270+ let cssCode = preCss (
271+ fs . readFileSync ( path . resolve ( __dirname , '../../lib/uvue.css' ) , 'utf8 ') ,
272+ 'uvue.css '
272273 )
273274 const flexDirection = parseUniXFlexDirection ( manifestJson )
274275 if ( flexDirection !== 'column' ) {
You can’t perform that action at this time.
0 commit comments