Closed
Description
What version of Tailwind CSS are you using?
3.3.6
What build tool (or framework if it abstracts the build tool) are you using?
tailwindcss-cli
What version of Node.js are you using?
v20.9.0
What browser are you using?
N/A
What operating system are you using?
N/A
Reproduction URL
$ mkdir /tmp/test && cd "$_"
$ npm init --yes
$ npm i -D tailwindcss lightningcss-cli
$ npx tailwindcss init
$ printf '@tailwind base;' > test.src.css
$ npx tailwindcss -c ./tailwind.config.js -i ./test.src.css -o ./test.css
$ npx tailwindcss -c ./tailwind.config.js -i ./test.src.css -o ./test.css.min.tw -m
$ npx lightningcss --minify test.css > test.css.min.lcss
$ diff test.css.min.tw test.css.min.lcss
Describe your issue
lightningcss-cli will order the selectors alphabetically.
tailwindcss-cli does not.
*,:before,:after{box-sizing:border-box;border:0 solid #e5e7eb}
vs.
*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}
I suspect that the preflight is not passed into lighningcss.
Metadata
Metadata
Assignees
Labels
No labels