fix: update ddev to include all tailwind css styles

This commit is contained in:
2025-04-21 19:24:29 +02:00
parent baf203e4fd
commit b7de6dee99
5 changed files with 25 additions and 285 deletions

View File

@@ -1,13 +1,18 @@
/** @type {import('tailwindcss').Config} */
const defaultTheme = require('tailwindcss/defaultTheme')
module.exports = {
const isProduction = process.env.NODE_ENV === 'production';
const config = {
// Keep content defined always, but rely on safelist in dev
content: [
"./packages/base/Resources/Private/**/*.html",
"./packages/base/Resources/Private/**/*.js",
"./packages/base/ContentBlocks/ContentElements/**/*.html",
"./public/typo3conf/ext/*/Resources/Private/**/*.html",
],
// Disable purging in dev by safelisting everything
safelist: isProduction ? [] : [{ pattern: /.*/ }],
theme: {
extend: {
transitionProperty: {
@@ -36,5 +41,7 @@ module.exports = {
},
},
plugins: [],
}
};
module.exports = config;