forked from eighty9nine/filament-excel-import
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.js
More file actions
28 lines (26 loc) · 821 Bytes
/
tailwind.config.js
File metadata and controls
28 lines (26 loc) · 821 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Conditional config based on whether we're in a standalone build or integrated environment
let config = {
content: [
'./resources/**/*.{php,html,js,css}',
],
theme: {
extend: {},
},
plugins: [],
}
// Try to load Filament preset if available (when integrated with a Filament app)
try {
const preset = require('./vendor/filament/filament/tailwind.config.preset')
config = {
presets: [preset],
content: [
'./app/Filament/**/*.php',
'./resources/views/filament/**/*.blade.php',
'./vendor/filament/**/*.blade.php',
],
}
} catch (e) {
// Fallback to standalone config when vendor directory doesn't exist
console.log('Using standalone Tailwind config (vendor directory not found)')
}
module.exports = config