Fix: Rename tailwind.config.js to .cjs in Admin package
Some checks failed
Build and Deploy / build-and-deploy (push) Failing after 2m27s

The Admin package uses 'type': 'module' in package.json, which treats .js files as ESM.
However, tailwind.config.js uses CommonJS syntax (module.exports).
Renaming it to .cjs explicitly tells Node and build tools to treat it as CommonJS,
resolving build errors related to ESM/CJS interop.
This commit is contained in:
Cauê Faleiros
2026-02-04 11:39:05 -03:00
parent cf394b6607
commit 0f7e97e2f3

View File

@@ -0,0 +1,49 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ["./src/Resources/**/*.blade.php", "./src/Resources/**/*.js"],
theme: {
container: {
center: true,
screens: {
"4xl": "1920px",
},
padding: {
DEFAULT: "16px",
},
},
screens: {
sm: "525px",
md: "768px",
lg: "1024px",
xl: "1240px",
"2xl": "1440px",
"3xl": "1680px",
"4xl": "1920px",
},
extend: {
colors: {
brandColor: "var(--brand-color)",
},
fontFamily: {
inter: ['Inter'],
icon: ['icomoon']
}
},
},
darkMode: 'class',
plugins: [],
safelist: [
{
pattern: /icon-/,
}
]
};