Skip to content

--watch doesn't work in background #9870

@stfnx

Description

@stfnx

What version of Tailwind CSS are you using?

v3.2.4

What build tool (or framework if it abstracts the build tool) are you using?

TailwindCSS standalone binary

What operating system are you using?

Happens on both Linux and Windows

Describe your issue

I have a shell script to start my development server:

#!/bin/env bash

# Get absolute path to project's root direcotry
PROJECT_ROOT=$(realpath "$0")
PROJECT_ROOT=$(dirname "$PROJECT_ROOT")

# Run tailwind watcher in background
${PROJECT_ROOT}/tailwind/tailwind_bin_v3.2.4 \
--watch \
--config ${PROJECT_ROOT}/tailwind/config.js \
--input ${PROJECT_ROOT}/tailwind/main.css \
--output ${PROJECT_ROOT}/app/static/css/tailwind.css &

# Run flask dev server in debug mode
flask --debug run

This worked perfectly fine with TailwindCSS v3.1.8 but now I upgraded to v3.2.4 and it doens't work anymore.

Downgrading to v3.1.8 makes it work again.

Expected behaviour

When running the script, the Tailwind watcher should run as a background process and I should see its output (Rebuilding...Done in 267ms) in stdout.

Actual behaviour

The Tailwind watcher doesn't run and I can't see any output in stdout.

Note

When running the command in foreground (without & at the end) it works as expected. So as a workaround I run flask in background and tailwind in foreground.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions