Skip to content

Commit

Permalink
fix: global scss injection error problem
Browse files Browse the repository at this point in the history
  • Loading branch information
anncwb committed Aug 2, 2024
1 parent 5301591 commit 9cfa3a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/src/guide/essentials/styles.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const { b, e, is } = useNamespace('menu');
</template>
<style lang="scss" scoped>
// 如果你在应用内使用,这行代码可以省略,已经在所有的应用内全局引入了
@import (reference) '@vben/styles/global';
@import '@vben/styles/global';
@include b('menu') {
color: black;
Expand Down
2 changes: 1 addition & 1 deletion internal/vite-config/src/config/application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ function createCssOptions(injectGlobalScss = true) {
const relativePath = relative(root, filepath);
// apps下的包注入全局样式
if (relativePath.startsWith('apps/')) {
return `@import (reference) "@vben/styles/global";\n${content}`;
return `@import "@vben/styles/global";\n${content}`;
}
return content;
},
Expand Down

0 comments on commit 9cfa3a8

Please sign in to comment.