mirror of
https://github.com/supabase/supabase.git
synced 2026-05-31 09:52:58 +08:00
We changed to default to ESM imports a while ago, which means local builds are now breaking because the Tailwind uses a require. Changed to CJS for Tailwind config file. (I have no idea how this has been working on Vercel all this time.)
28 lines
750 B
JavaScript
28 lines
750 B
JavaScript
const config = require('config/tailwind.config')
|
|
|
|
module.exports = config({
|
|
content: [
|
|
'./app/**/*.{ts,tsx,mdx}',
|
|
'./components/**/*.tsx',
|
|
'./content/**/*.{ts,tsx,mdx}',
|
|
'./docs/**/*.{tsx,mdx}',
|
|
'./features/**/*.{ts,tsx,mdx}',
|
|
'./layouts/**/*.tsx',
|
|
'./pages/**/*.{tsx,mdx}',
|
|
'./../../packages/ui/src/**/*.{tsx,ts,js}',
|
|
'./../../packages/ui-patterns/src/**/*.{tsx,ts,js}',
|
|
],
|
|
plugins: [
|
|
function ({ addUtilities, addVariant }) {
|
|
addUtilities({
|
|
// prose (tailwind typography) helpers
|
|
// useful for removing margins in prose styled sections
|
|
'.prose--remove-p-margin p': {
|
|
margin: '0',
|
|
},
|
|
})
|
|
},
|
|
require('@tailwindcss/container-queries'),
|
|
],
|
|
})
|