You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running multiple builds, the css config of the first build is reused. When running a build with a different config later on, it won't read from the provided config but will use the one that was encountered first.
Reproduction
I've created a small demo in https://github.com/luukdv/vite-builds. When you run npm i && node build, it will create two directories inside dist. Both are identical because they're built using the postcss config of the first encountered build.
Expected: the CSS file in dist/test-1 contains .text-green-500
Actual: the CSS file in dist/test-1 contains .text-red-500 (the same as dist/test-2, since this one was built first)
Describe the bug
When running multiple builds, the
css
config of the first build is reused. When running a build with a different config later on, it won't read from the provided config but will use the one that was encountered first.Reproduction
I've created a small demo in https://github.com/luukdv/vite-builds. When you run
npm i && node build
, it will create two directories insidedist
. Both are identical because they're built using thepostcss
config of the first encountered build.dist/test-1
contains.text-green-500
dist/test-1
contains.text-red-500
(the same asdist/test-2
, since this one was built first)System Info
Used package manager: npm
The text was updated successfully, but these errors were encountered: