This is a minimal reproduction of a bug with @unocss/webpack and Webpack persistent caching.
- Install dependencies with
yarn - Perform a production build with
yarn build - Observe the built
dist/main.cssor view the rendered content withyarn serve. unocss classes should be correctly generated and applied properly. - Perform another production build (should be faster due to persistent caching)
- Observe the built CSS. It should contain normal imported CSS rules but (incorrectly) not any unocss classes.