react-refresh-webpack-plugin
postcss-plugins
react-refresh-webpack-plugin | postcss-plugins | |
---|---|---|
4 | 18 | |
3,169 | 944 | |
0.2% | 1.4% | |
8.0 | 9.8 | |
about 1 month ago | 4 days ago | |
JavaScript | CSS | |
MIT License | MIT No Attribution |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
react-refresh-webpack-plugin
-
The Complete Guide for Setting Up React App from Scratch (feat. TypeScript)
as mentioned above, we're using the webpack; therefore, we're going to use @pmmmwh/react-refresh-webpack-plugin to apply the Fast Refresh feature to our app. I mean, it's for development, so what's the harm of trying it right?
-
Enabling hot reloading with ReactJS project
You didn't mention what version of webpack. You also want to use react-refresh-webpack-plugin.
-
Electron Forge Fast Refresh?
https://github.com/pmmmwh/react-refresh-webpack-plugin/ follow this worked for me. Feel free to reach out if you face issues.
-
Introducing Zero-Bundle-Size React Server Components
December 2019: @pmmmwh/react-refresh-webpack-plugin (fast Refresh for React+Webpack initial release)
postcss-plugins
- Rethinking CSS in JS
-
Release Radar · August 2024: Major updates from the open source community
Who likes modern CSS? PostCSS Preset Env can help you convert modern CSS into readable browser code, by determining the polyfills needed based on the target browser or runtime environment. The latest version brings support for CSS nesting to align with the latest specifications, and the order of nested declarations and rules are preserved to better support mixins. This new update only supports Node.js 18 or higher. Check out the full list of changes in the release notes.
-
Supporting ancient browsers using modern Web-Tooling
To bring modern CSS features to older browsers, we can use postcss-preset-env. PostCSS allows you to use modern and or future CSS features and automatically adds prefixes and, most importantly, polyfills as needed. If you don't know PostCSS, you probably already heard of Tailwind, right? It's just another PostCSS-Plugin ;)
-
Modern CSS Layouts: You Might Not Need a Framework for That
Sass variables and CSS Custom Properties (a.k.a. CSS variables) are pretty different from each other [1].
If you want to use CSS Nesting and be backwards compatible with older browsers, the PostCSS plugin postcss-preset-env handles that and lots of other new CSS features that older browsers don't support [2].
[1]: https://sass-lang.com/blog/sass-and-native-nesting/
[2]: https://preset-env.cssdb.org
-
Old Dogs, New CSS Tricks
> If you want to use the normal non-& syntax, then you will need to use Safari 17.2, yes.
Non-& is not “the normal syntax”. It was a late addition to the specification. Both with and without & are normal, but with & has better compatibility.
Even if you don’t use the &, you can still write nested CSS and support older versions of Safari, like I said. Use PostCSS or Lightning CSS. There are normally several areas where you can start writing modern CSS today and fill in the backwards compatibility with these tools. It’s not just nesting.
https://preset-env.cssdb.org
https://lightningcss.dev/transpilation.html
-
PostCSS - my initial experience
the author of the most popular PostCSS plugin himself recommended the postcss-preset-env over his own creation which is cssnex, and
-
CSS Is Fun Again
The example in A) won't work as the plugin can't convert the functions with variables in it. https://github.com/csstools/postcss-plugins/tree/main/plugin...
-
What are some harsh truths that r/webdev needs to hear?
You can use this today if you're using PostCSS in your build process (which is the case if you use autoprefixer)! https://preset-env.cssdb.org/
-
Vanilla+PostCSS as an Alternative to SCSS
Switching from a ready-made tool like Sass or a recommendation package like cssnext (deprecated since 2019) or PostCSS Preset Env (archived in 2022), to the modular PostCSS Preset Env plugin set we can choose a helpful and convenient set of future CSS features beyond the current stable client CSS.
-
More CSS reactions
To implement :has support, the css-has-pseudo polyfill can be used. This polyfill includes both a PostCSS plugin and a JS function to be used in the HTML page.
What are some alternatives?
mini-css-extract-plugin - Lightweight CSS extraction plugin
css-houdini-drafts - Mirror of https://hg.css-houdini.org/drafts
rfcs - RFCs for changes to React
tailwindcss - A utility-first CSS framework for rapid UI development. [Moved to: https://github.com/tailwindlabs/tailwindcss]
offline-plugin - Offline plugin (ServiceWorker, AppCache) for webpack (https://webpack.js.org/)
css-experiments