-
Notifications
You must be signed in to change notification settings - Fork 161
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
WIP: feature: testing Yarn PnP #84
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice addition!
Could you document this under the "Package Management" section: https://docs.google.com/document/d/1DbdRZBsyjbeBl9vddUyXCUWsgwdgyyUY2NIQitf3_Z0/edit#heading=h.4wzazzv6mudg |
Will do so later. We should also prefer csstools/normalize.css (and probably PostCSS instead of SCSS). |
Why PostCSS instead of Scss? |
without PnP:
But there are currently some blockers: facebook/create-react-app#5103 |
In general because building node-sass takes a while (node-gyp) and PostCSS is much faster and there is See https://www.npmjs.com/package/precss And also an article (one of many) about the reasons to switch: https://medium.com/@Kirkhammetz/moving-from-sass-to-postcss-why-what-and-how-f68b1bc760dc Some benchmarks: https://github.com/postcss/benchmark Some introduction into PostCSS: https://www.smashingmagazine.com/2015/12/introduction-to-postcss/ Also this enables us to add features like CSS variables and new CSS features which are transpiled for the targeted browsers (browserslist config in package.json). PostCSS plugins: https://www.postcss.parts/ |
But regarding PostCSS (which is just an idea and which we are currently evaluating in some projects), we are also evaluating stylis: https://github.com/thysultan/stylis.js (but PostCSS has a much bigger ecosystem) https://www.npmjs.com/search?q=stylis%20plugin |
what is the status of this? @DanielRuf @crysfel |
Can someone please update the status? |
I would have to test it again. Sorry, had not much time while working on the projects at work. This PR can kept be open (still WIP and testing). Also PnP requires Yarn as it is not a standalone solution or portable. |
Details
Description
This PR is meant to test Yarn PnP (will have to switch to the macBook tomorrow).