Browse Source

chore: 按需增加 reset.css

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

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

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