Skip to content

Commit b86f181

Browse files
authored
fix: skip cache cleanup during development (#98)
## Summary - Skip `cleanupCache` when `api.context.action === 'dev'` to retain cache during dev server runs.
1 parent 998d440 commit b86f181

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,10 @@ ${code}`;
199199
});
200200

201201
api.onAfterBuild(() => {
202+
if (api.context.action === 'dev') {
203+
return;
204+
}
205+
202206
cleanupCache({
203207
config: finalConfigPath,
204208
theme,

0 commit comments

Comments
 (0)