Skip to content
This repository has been archived by the owner on Jul 30, 2022. It is now read-only.

Autoprefixer #27

Closed
lkraav opened this issue Apr 25, 2019 · 5 comments
Closed

Autoprefixer #27

lkraav opened this issue Apr 25, 2019 · 5 comments

Comments

@lkraav
Copy link
Contributor

lkraav commented Apr 25, 2019

Heya. With https://github.com/postcss/autoprefixer I wonder if a PostCSS build stack would make sense to strive towards, after all.

@web-padawan do you have any objections to Autoprefixer in general?

What about PostCSS? (while still keeping dart-sass central, as currently is, at least for now)

@web-padawan
Copy link
Owner

Autoprefixer is generally not needed for modern browsers supported by Aybolit, except for certain properties like user-select and -webkit-appearance, and I prefer listing these explicitly.

Scss is just a personal preference. I'm ok with PostCSS too, just don't know if it would improve compilation time significantly (dart-sass should be fast, too).

@lkraav
Copy link
Contributor Author

lkraav commented Apr 27, 2019

WordPress/gutenberg#14801 very interesting in-depth discussion wrt SASS vs PostCSS

@mor10 quote

From my perspective this is about setting the stage for future development. Sass sits firmly anchored in the past and old best-practices. Building it into tooling at this stage suggests to users that Sass is a viable path forward. That would be unfortunate since modern CSS with the assistance of PostCSS is the official path forward for the web platform. Building in further reliance on Sass at this point holds us back from what's happening elsewhere.

@mor10
Copy link

mor10 commented Apr 27, 2019

My recommendation is using PostCSS with postcss-preset-env. It gives you a solid platform for both future-forward and bleeding edge features, and proper backwards compat when needed.

@web-padawan
Copy link
Owner

Thanks for the input, but please keep in mind the following:

  1. This project doesn't need the various capacities of PostCSS. What we really need here are variables (used in combination with custom CSS properties) and loops.

  2. Keeping the .scss source makes it clear that these files are not supposed to be used directly.

@web-padawan
Copy link
Owner

I'm back from my vacation and doing some cleanup here, so let me close this issue per above comment. You can switch to precss in your projects if you wish, but I'm going to keep Sass for now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants