Skip to content

Commit

Permalink
Merge pull request #405 from traPtitech/fix/scssImport
Browse files Browse the repository at this point in the history
scss の import 周りを修正
  • Loading branch information
Pugma authored Dec 15, 2024
2 parents c9bb317 + f103118 commit fc60617
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 2 additions & 0 deletions src/styles/scrollbar.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use "./color" as *;

::-webkit-scrollbar {
width: 10px;
}
Expand Down
2 changes: 2 additions & 0 deletions src/styles/toast.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use "./color" as *;

.Vue-Toastification__toast--success {
background-color: $color-primary;
}
Expand Down
9 changes: 5 additions & 4 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,12 @@ export default defineConfig(() => ({
css: {
preprocessorOptions: {
scss: {
api: 'modern-compiler',
additionalData: `
@import "${srcPath}/styles/color.scss";
@import "${srcPath}/styles/z-index.scss";
@import "${srcPath}/styles/toast.scss";
@import "${srcPath}/styles/scrollbar.scss";
@use "${srcPath}/styles/color" as *;
@use "${srcPath}/styles/z-index" as *;
@use "${srcPath}/styles/toast" as *;
@use "${srcPath}/styles/scrollbar" as *;
`
}
}
Expand Down

0 comments on commit fc60617

Please sign in to comment.