Browse Source

fix: 剔除重复的 reset.css

eiinu 2 years ago
parent
commit
b8beede0d0
1 changed files with 2 additions and 3 deletions
  1. 2 3
      jd/generate-unplugin-deps.cjs

+ 2 - 3
jd/generate-unplugin-deps.cjs

@@ -112,10 +112,9 @@ styleMap.forEach((value, key) => {
     return component !== key;
   });
   // gen style
-  const outputStyleMjs = `${deps
+  const outputStyleMjs = `import '../../styles/reset.css';\n${deps
     .map((component) => {
-      return `import '../${component.toLowerCase()}/index.scss';
-import '../../styles/reset.css';\n`;
+      return `import '../${component.toLowerCase()}/index.scss';\n`;
     })
     .reverse()
     .join('')}import './index.scss';\n`;