Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add PostCSS to CSS stack #13

Open
tylersticka opened this issue Dec 10, 2019 · 1 comment
Open

Add PostCSS to CSS stack #13

tylersticka opened this issue Dec 10, 2019 · 1 comment
Labels
✨ enhancement New feature or request

Comments

@tylersticka
Copy link
Member

In my Feeling Sassy Again article, I mentioned how I thought that Sass was best for proprietary/compiled features while PostCSS was best at browser compatibility and automated/robot stuff.

I think in my ideal world, the CSS stack for this would be something like this...

  • We include a browserslist file.
  • PostCSS is configured to run Preset Env and Autoprefixer, both of which will change their behavior based on browserslist.
  • Files ending in .css are processed by just PostCSS.
  • Files ending in .scss are processed by Sass, then by PostCSS.

This will give us:

  • The ability to automatically polyfill CSS features based on a project's target browsers.
  • The ability to opt in to proprietary Sass stuff when we want to, ignore it if/when we don't need it.

That said, the latter point isn't super important to me. If supporting Sass-less compilation means that importing gets confusing, then that may not be a reasonable trade-off.

@Paul-Hebert Paul-Hebert added the ✨ enhancement New feature or request label Dec 10, 2019
@Paul-Hebert
Copy link
Member

That makes sense to me! I'm definitely open to that approach!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants