Replies: 1 comment
-
@ai I'm sorry, I thought I'd posted in a discussions, not issue, section. I mean it says at the top under Q&A "Ask the community for help". I've had a look at some of the other posts in this category and don't really see how mine is any different from others. |
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
Uh oh!
There was an error while loading. Please reload this page.
-
I have a project that uses SASS with Webpack where I can pass an environment variable into the CSS like this:
and then use it like
background-image: url('/themes/#{ $theme }/images/file.png')
.Now I need to be able to do the same thing with a different project using PostCSS which is set up like this:
I've looked at a couple of different plugins like
postcss-simple-vars
andpostcss-themed
but must not be configuring them correctly because I always get$theme
printed in the output.Does anyone have any recommendations with examples of how to do this?
Beta Was this translation helpful? Give feedback.
All reactions