Skip to content

Outdated Tailwind CSS startup command #75

@christeefy

Description

@christeefy

Hi there,

Using dx new ... to set up a new project generates a README containing the following Tailwind code snippet. However, executing the command produces an error:

>>> npx tailwindcss -i ./tailwind.css -o ./assets/tailwind.css --watch
npm error could not determine executable to run

According to the Tailwind CSS doc linked in the README, the command to run when adapted for Dioxus template projects, should instead be:

npx @tailwindcss/cli -i ./tailwind.css -o ./assets/tailwind.css --watch

which indeed works.

I believe the previous command was for tailwindcss@v3.x.


I'm relatively new to frontend, so apologies in advance if my conclusions here are incorrect.

Otherwise, I'm happy to open a PR to make the updated changes to the templates.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions