You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm new to Parcel, and I was trying to convert a simple existing Gulp project to a Parcel project. I'm not sure how to set up the PostCSS configurations though. I use PreCSS instead of Sass for variables with a '$' and some other functions. While the output gives no error it does not transform my variables, so the CSS won't work. What am I doing wrong here? How do I set up a transformation that will use the PreCSS plugin before the rest?
It's a bit similar to this problem, only with PreCSS instead of CSSNext .
I have PreCSS working by using postcss.config.js and the variables option. I haven't tried with .postcssrc but I assume it should work. One thing I've noticed is that if postcss has an error in the configuration and does not run properly, parcel will just silently ignore it.
I can make it work, but postcss transforms files before it imports them, so variables and functions that need to work across different files don't compile like they should.
Intro
I'm new to Parcel, and I was trying to convert a simple existing Gulp project to a Parcel project. I'm not sure how to set up the PostCSS configurations though. I use PreCSS instead of Sass for variables with a '$' and some other functions. While the output gives no error it does not transform my variables, so the CSS won't work. What am I doing wrong here? How do I set up a transformation that will use the PreCSS plugin before the rest?
It's a bit similar to this problem, only with PreCSS instead of CSSNext .
🎛 Configuration
./.postcssrc
./index.html
./src/style.css
The text was updated successfully, but these errors were encountered: