vue.congfig.js not able to share javascript variable on scss variable #6053
Unanswered
rubencool
asked this question in
Help/Questions
Replies: 1 comment
-
No, you can only pass a string or a function that return a string. https://github.com/webpack-contrib/sass-loader/tree/v8.0.0#prependdata But you can transform your api data into a string. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am working on dynamic color on my project. So i was succeed to store variable on env and passed on vue.config.js in order to render scss color variable from env variable. but i got into problem when i had to render color value from api since api send color variable as a object. so is it possible to pass object on scss prependData as a object ?
I had also asked same question on stack over flow. U can visit stack over flow for full detail i had attach link below:
https://stackoverflow.com/questions/72479914/vue-congfig-js-not-able-to-share-javascript-variable-on-scss-variable.
Can any one suggested me what shall i do ?
Beta Was this translation helpful? Give feedback.
All reactions