mirror of
https://0xacab.org/jvoisin/mat2-web.git
synced 2025-05-11 10:45:20 -04:00
upgrade to tailwind 4
This commit is contained in:
parent
b3d5d400f3
commit
a5c6cfe808
8 changed files with 1495 additions and 2421 deletions
|
@ -4,10 +4,10 @@ const purgecss = require('@fullhuman/postcss-purgecss')
|
|||
|
||||
module.exports = (ctx) => ({
|
||||
plugins: [
|
||||
require('tailwindcss')(path.resolve(__dirname, 'tailwind.config.js')),
|
||||
require('@tailwindcss/postcss'),
|
||||
require('autoprefixer'),
|
||||
process.env.NODE_ENV === 'production' ? cssnano({ preset: 'default' }) : null,
|
||||
ctx.env === 'production' && purgecss.default({
|
||||
ctx.env === 'production' && purgecss({
|
||||
content: [
|
||||
path.resolve(__dirname, 'templates/**/*.html')
|
||||
],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue