Skip to content

Commit a85803f

Browse files
fix: update tailwind config (#35)
1 parent 1c3937e commit a85803f

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1+
const { join } = require('path');
2+
13
module.exports = {
24
plugins: {
3-
tailwindcss: {},
5+
tailwindcss: {
6+
config: join(__dirname, 'tailwind.config.js'),
7+
},
48
autoprefixer: {},
59
},
6-
}
10+
};

packages/qwik-nx/src/generators/setup-tailwind/files/tailwind.config.js__tmpl__

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
/** @type {import('tailwindcss').Config} */
22
module.exports = {
3-
content: ['./src/**/*.{js,ts,jsx,tsx,mdx}'],
3+
content: [
4+
join(
5+
__dirname,
6+
'src/**/*.{js,ts,jsx,tsx,mdx}'
7+
),
8+
],
49
theme: {
510
extend: {},
611
},

0 commit comments

Comments
 (0)