Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

PostCSS JS config breaks Vitest #148

Open
goosewobbler opened this issue Feb 21, 2024 · 0 comments
Open

PostCSS JS config breaks Vitest #148

goosewobbler opened this issue Feb 21, 2024 · 0 comments

Comments

@goosewobbler
Copy link
Owner

See vitest-dev/vitest#4201.

The workaround was to convert the PostCSS config to JSON but this changes the use of cssnano as it was behind a check for the production build:

if (process.env.NODE_ENV === 'production') {
  plugins.push(
    cssnano({
      preset: 'default',
    }),
  );
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant