Skip to content

Cli should not scan unauthorized directories #17802

@libondev

Description

@libondev

What version of Tailwind CSS are you using?

v4.1.4

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

Vite 6.3.1

What version of Node.js are you using?

v20.13.1

What browser are you using?

Chrome

What operating system are you using?

macOS and Windows

Reproduction URL

https://github.com/libondev/test-tw-cli-scan-dir

Describe your issue

I am using cli to generate static styles for my code base, but it scans other unauthorized paths. For example: I specified my work path as @ @source "../src "; But it outputs the styles in my ./public/about.html.

The final output result should not include the class name in my public/about.html file.

Reproduction step:

  • run: pnpm i
  • run: pnpm run css
  • Check src/output.css

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