Skip to content

Commit 029c7e8

Browse files
committed
fix: source file paths for Tailwind CSS while building doc site
1 parent 262c62b commit 029c7e8

File tree

1 file changed

+3
-1
lines changed
  • .knosys/presets/tailwind

1 file changed

+3
-1
lines changed

.knosys/presets/tailwind/doc.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
const { nextui } = require('@nextui-org/react');
22
const starlightPlugin = require('@astrojs/starlight-tailwind');
33

4+
const srcDirPath = 'src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}';
5+
46
/** @type {import('tailwindcss').Config} */
57
module.exports = {
68
content: [
7-
'./.knosys/sites/default/src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}',
9+
process.env.OB_SITE === 'DOC' ? `./${srcDirPath}` : `./.knosys/sites/default/${srcDirPath}`,
810
'./node_modules/@nextui-org/theme/dist/**/*.{js,ts,jsx,tsx}',
911
],
1012
theme: {

0 commit comments

Comments
 (0)