File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed
bolt-tailwind/bolt/tailwind Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change 1
1
import os
2
- import sys
3
2
4
3
import click
5
4
5
+ from bolt .packages import packages
6
6
from bolt .runtime import APP_PATH
7
7
8
8
from .core import Tailwind
@@ -74,14 +74,15 @@ def compile(watch, minify):
74
74
# These paths should actually work on Windows too
75
75
# https://github.com/mrmlnc/fast-glob#how-to-write-patterns-on-windows
76
76
args .append ("--content" )
77
- content = "," .join (
78
- [
79
- os .path .relpath (APP_PATH ) + "/**/*.{html,js}" ,
80
- os .path .relpath (APP_PATH )
81
- + "/../bolt/**/*.{html,js}" , # TODO use INSTALLED_PACKAGES?
82
- sys .exec_prefix + "/lib/python*/site-packages/bolt*/**/*.{html,js}" ,
83
- ]
84
- )
77
+ paths = [
78
+ os .path .relpath (APP_PATH ) + "/**/*.{html,js}" ,
79
+ ]
80
+
81
+ # Add paths from installed packages
82
+ for package_config in packages .get_package_configs ():
83
+ paths .append (os .path .relpath (package_config .path ) + "/**/*.{html,js}" )
84
+
85
+ content = "," .join (paths )
85
86
print (f"Content: { content } " )
86
87
args .append (content )
87
88
You can’t perform that action at this time.
0 commit comments