PostCSS Plugins in Vite & Ionic

Let’s install PostCSS Nesting (or any PostCSS Plugin) in our Vite based Ionic project! PostCSS Nesting over Native Nesting Native CSS Nesting is nearly here, but it’s going to be a little while yet before every user is able to render it, especially if you’re building an ionic app that targets “older” devices. So it’s probably wiser to continue using third party solutions for the forseeable future. I’ve always been a SASS user up until now, but the advantage of using PostCSS Nesting is that it uses the W3C CSS Nesting spec, so that when the time comes to target only devices that can handle CSS Nesting the switch should be as simple as uninstalling the plugins and deleting the config file....

August 3, 2023 · 2 min