Skip to content

Commit

Permalink
Run Tailwind CSS from installed plugin directory
Browse files Browse the repository at this point in the history
Workaround to address an error, possibly related to Tailwind CSS 4.x:

npm error could not determine executable to run
  • Loading branch information
justinmayer committed Feb 19, 2025
1 parent 853e5eb commit 8b49a58
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pelican/plugins/tailwindcss/tailwindcss.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,8 @@ def generate_css(po):
input_output = f"-i {input_file_path} -o {output_file_path}"
print(f"{utils.LOG_PREFIX} Build css ({output_file_path})")

subprocess.run(
commands.run_in_plugin(
f"npx tailwindcss -c {twconfig_file_path} {input_output}",
shell=True,
)


Expand Down

0 comments on commit 8b49a58

Please sign in to comment.