Skip to content

Commit 8b49a58

Browse files
committed
Run Tailwind CSS from installed plugin directory
Workaround to address an error, possibly related to Tailwind CSS 4.x: npm error could not determine executable to run
1 parent 853e5eb commit 8b49a58

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pelican/plugins/tailwindcss/tailwindcss.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,8 @@ def generate_css(po):
6565
input_output = f"-i {input_file_path} -o {output_file_path}"
6666
print(f"{utils.LOG_PREFIX} Build css ({output_file_path})")
6767

68-
subprocess.run(
68+
commands.run_in_plugin(
6969
f"npx tailwindcss -c {twconfig_file_path} {input_output}",
70-
shell=True,
7170
)
7271

7372

0 commit comments

Comments
 (0)