Skip to content

Commit

Permalink
fix: disable persistent cache for unocss generation (#6774)
Browse files Browse the repository at this point in the history
  • Loading branch information
ClarkXia authored Jan 31, 2024
1 parent b3c53b8 commit 2920b01
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/twelve-radios-travel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@ice/plugin-unocss': patch
---

fix: disable persistent cache for unocss generation
2 changes: 2 additions & 0 deletions packages/plugin-unocss/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ const plugin: Plugin<UserConfig> = (options) => ({
],
};
onGetConfig((config) => {
// Unocss is conflict with webpack 5 persistent caching.
config.enableCache = false;
config.configureWebpack ??= [];
config.configureWebpack.push((webpackConfig) => {
// @ts-expect-error
Expand Down

0 comments on commit 2920b01

Please sign in to comment.