Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix missing PostCSS dependencies in the CLI #9617

Merged
merged 5 commits into from
Oct 20, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
ensure changedContent gets cleared
Otherwise this list gets bigger and bigger, not only that there is a
subtle bug. The moment you save a `.css` file we want to create a new
context and start from scratch. However, since the list was never
cleared, it meant that every subsequent save to *any* file (not only
config / css files) creates a new context...

By clearing the least we should work around this problem.
  • Loading branch information
RobinMalfait committed Oct 20, 2022
commit 1a15f224ba420567a0bf5a6683a1d26e337721a9
2 changes: 1 addition & 1 deletion src/cli/build/watching.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export function createWatcher(args, { state, rebuild }) {
extension: path.extname(file).slice(1),
})

chain = chain.then(() => rebuild(changedContent))
chain = chain.then(() => rebuild(changedContent.splice(0)))

return chain
}
Expand Down