Postcss and variables #1828
LunaticMuch
started this conversation in
General
Replies: 1 comment 4 replies
|
How do you configure |
4 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 am feeling a bit stuck with
postcssand variables. I used to suepostcss-variable-loaderbut 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.
All reactions