How do I reference variables exported from a Scss file? #10
Answered
by
U7P4L-IN
ashikahmed3230
asked this question in
Q&A
-
I used the export method in cli and found that this method did not work on vite. //index.scss
$--color-primary: #75126d;
:export {
theme: $--color-primary;
}
import color from './index.scss'
console.log(color);
/**log
@charset "UTF-8";
:export {
theme: #75126d;
}
**/
There's no such convention in vite. |
Beta Was this translation helpful? Give feedback.
Answered by
U7P4L-IN
Jul 1, 2023
Replies: 2 comments 3 replies
-
There's no such convention in vite. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
ashikahmed3230
-
Is thare no solution |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There's no such convention in vite.