File tree Expand file tree Collapse file tree 1 file changed +18
-19
lines changed Expand file tree Collapse file tree 1 file changed +18
-19
lines changed Original file line number Diff line number Diff line change @@ -59,25 +59,24 @@ export default defineConfig(async ({ command, mode }) => {
59
59
host : '0.0.0.0'
60
60
} ,
61
61
css : {
62
- preprocessorOptions : {
63
- scss : {
64
- additionalData : ( code : string , path : string ) => {
65
- // 篡改组件库基础样式中的变量文件的引用
66
- if ( vxpStylePresetRE . test ( path ) ) {
67
- if ( path . includes ( 'dark' ) ) {
68
- return code . replace ( "@use './variables.scss' as *;" , `@use '${ darkPath } ' as *;` )
69
- }
70
-
71
- return code . replace (
72
- "@use './design/variables.scss' as *;" ,
73
- `@use '${ basePath } ' as *;`
74
- )
75
- }
76
-
77
- return code
78
- }
79
- }
80
- }
62
+ // preprocessorOptions: {
63
+ // scss: {
64
+ // additionalData: (code: string, path: string) => {
65
+ // // 篡改组件库基础样式中的变量文件的引用
66
+ // if (vxpStylePresetRE.test(path)) {
67
+ // if (path.includes('dark')) {
68
+ // console.log(path)
69
+ // return code.replace("@use './variables.scss' as *;", `@use '${darkPath}' as *;`)
70
+ // }
71
+ // return code.replace(
72
+ // "@use './design/variables.scss' as *;",
73
+ // `@use '${basePath}' as *;`
74
+ // )
75
+ // }
76
+ // return code
77
+ // }
78
+ // }
79
+ // }
81
80
} ,
82
81
build : {
83
82
chunkSizeWarningLimit : 10 * 1024 ,
You can’t perform that action at this time.
0 commit comments