Postcss and variables #1828
LunaticMuch
started this conversation in
General
Replies: 1 comment 4 replies
-
How do you configure |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am feeling a bit stuck with
postcss
and variables. I used to suepostcss-variable-loader
but I understand that with current postcss and webpack I could avoid it.My code, which uses a MUI theme, has this piece:
The variable is loaded by the file.
In webpack, I have
The compilation is actually fine, but when I load the page, webpack overlays some warnings:
So clearly not parsing the import variable. In my plugins in
postcss.config.js
, I just importNow, it's not clear....this configuration should, but it fails with an unclear reason regarding a reexport which makes no sense to me. EIther it can't process by default variables, or I am failing something.
Beta Was this translation helpful? Give feedback.
All reactions