diff --git a/pelican/plugins/tailwindcss/tailwindcss.py b/pelican/plugins/tailwindcss/tailwindcss.py index 5660a7b..d4852b0 100644 --- a/pelican/plugins/tailwindcss/tailwindcss.py +++ b/pelican/plugins/tailwindcss/tailwindcss.py @@ -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, )