diff options
| author | jfriedli | 2025-03-29 15:20:52 +0000 |
|---|---|---|
| committer | jfriedli | 2025-03-29 15:20:52 +0000 |
| commit | a5c6cfe8088b00ca97a35947da9ddf92d71f74fc (patch) | |
| tree | 08e2ee0f45aacfeeb73991b9a3422642ba633547 /postcss.config.js | |
| parent | b3d5d400f3fb16d483c8a092ce9a081761332aea (diff) | |
upgrade to tailwind 4v0.8.12
Diffstat (limited to 'postcss.config.js')
| -rw-r--r-- | postcss.config.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/postcss.config.js b/postcss.config.js index 340a1bf..a865cb4 100644 --- a/postcss.config.js +++ b/postcss.config.js | |||
| @@ -4,10 +4,10 @@ const purgecss = require('@fullhuman/postcss-purgecss') | |||
| 4 | 4 | ||
| 5 | module.exports = (ctx) => ({ | 5 | module.exports = (ctx) => ({ |
| 6 | plugins: [ | 6 | plugins: [ |
| 7 | require('tailwindcss')(path.resolve(__dirname, 'tailwind.config.js')), | 7 | require('@tailwindcss/postcss'), |
| 8 | require('autoprefixer'), | 8 | require('autoprefixer'), |
| 9 | process.env.NODE_ENV === 'production' ? cssnano({ preset: 'default' }) : null, | 9 | process.env.NODE_ENV === 'production' ? cssnano({ preset: 'default' }) : null, |
| 10 | ctx.env === 'production' && purgecss.default({ | 10 | ctx.env === 'production' && purgecss({ |
| 11 | content: [ | 11 | content: [ |
| 12 | path.resolve(__dirname, 'templates/**/*.html') | 12 | path.resolve(__dirname, 'templates/**/*.html') |
| 13 | ], | 13 | ], |
