Skip to content

Instantly share code, notes, and snippets.

@yyyanghj
Created November 27, 2022 07:41
Show Gist options
  • Save yyyanghj/ea651d09d3be7bb6bd01d558ee33c258 to your computer and use it in GitHub Desktop.
Save yyyanghj/ea651d09d3be7bb6bd01d558ee33c258 to your computer and use it in GitHub Desktop.
```sh
pnpm add -D postcss tailwindcss autoprefixer postcss-import postcss-nested postcss-color-hexa postcss-simple-vars postcss-preset-env
```
```js
// postcss.config.js
modulex.exports = {
plugins: {
'postcss-import': {},
'postcss-simple-vars': {},
'tailwindcss/nesting': {},
tailwindcss: {},
autoprefixer: {},
'postcss-preset-env': {
features: { 'nesting-rules': false },
},
'postcss-color-hexa': {}
}
}
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment