Skip to content

Commit c8c7e71

Browse files
committed
fix: add libui include
1 parent 5a8a29d commit c8c7e71

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/tailwind/config.cts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ type ConfigOptions = {
1818
include?: string[];
1919
plugins?: PluginsConfig;
2020
root?: string;
21+
libuiInclude?: boolean;
2122
extend?: {
2223
theme?: Partial<CustomThemeConfig>;
2324
};
@@ -27,13 +28,16 @@ const config = ({
2728
content = [],
2829
include = [],
2930
root = undefined,
31+
libuiInclude = true,
3032
plugins = [],
3133
extend = {}
3234
}: ConfigOptions = {}): Config => {
33-
if (isDev) {
34-
content.push(path.resolve(packageRoot, 'src/**/*.{js,jsx,ts,tsx}'));
35-
} else {
36-
content.push(path.resolve(packageRoot, 'dist/**/*.js'));
35+
if (libuiInclude) {
36+
if (isDev) {
37+
content.push(path.resolve(packageRoot, 'src/**/*.{js,jsx,ts,tsx}'));
38+
} else {
39+
content.push(path.resolve(packageRoot, 'dist/**/*.js'));
40+
}
3741
}
3842

3943
for (const id of include) {

0 commit comments

Comments
 (0)