Closed stevepolitodesign closed 5 months ago
Adds modern-normalize to postcss and sass installation scripts in an effort to improve the developer experience.
postcss
sass
This is consistent with the existing decision to include autoprefixer with the postcss installation script.
We chose modern-normalize over Normalize.css due to that fact that it is actively maintained and is used in Tailwind.
Create a new rails app without specifying a --css option:
--css
rails new cssbundling_demo
Add the gem referencing this fork.
gem "cssbundling-rails", github: "stevepolitodesign/cssbundling-rails", branch: "sp-modern-normalize"
Run the installation script for either postcss or sass.
bin/rails css:install:[postcss|sass]
Confirm the styles are compiled to app/assets/builds/application.css
app/assets/builds/application.css
yarn build:css cat app/assets/builds/application.css
I'd rather be going in the other direction and consider whether we still need autoprefixer. This needs to be an absolute minimal install that people can then take further.
Adds modern-normalize to
postcss
andsass
installation scripts in an effort to improve the developer experience.This is consistent with the existing decision to include autoprefixer with the
postcss
installation script.We chose modern-normalize over Normalize.css due to that fact that it is actively maintained and is used in Tailwind.
How to review this pull-request
Create a new rails app without specifying a
--css
option:Add the gem referencing this fork.
Run the installation script for either
postcss
orsass
.Confirm the styles are compiled to
app/assets/builds/application.css