tailwindcss/integrations/cli
Philipp Spiess 89f0047c0d
CLI: Use the right base when loading files from stdin (#14522)
Fixes #14521

When using the CLI to read files from `stdin` like this:

```bash
npx tailwindcss  --input=- -o bar.css < foo.css
```

We need to set the `base` path to be the current working directory
(`process.cwd()`). However, `cwd()` already _is_ a directory and calling
`dirname()` on it did go to the parent directory _which might not have
the `tailwindcss` dependency installed.
2024-09-26 12:32:46 +02:00
..
config.test.ts Add integration test for Vite CSS module support (#14349) 2024-09-05 14:24:50 +02:00
index.test.ts CLI: Use the right base when loading files from stdin (#14522) 2024-09-26 12:32:46 +02:00
plugins.test.ts Support plugin options in CSS (#14264) 2024-09-02 12:49:09 -04:00