This is what I’ve tried so far:
Installed via
npm install postcss-nesting --save-devSetup vite.config.js:
import { fileURLToPath, URL } from 'url';
import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import postcssNesting from 'postcss-nesting';
export default defineConfig({
plugins: [
vue(),
postcssNesting
],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
}
}
});
But it’s not working. What’s the right way to setup PostCSS so that I can use CSS nesting?
Thanks!