Skip to content

Commit 4393216

Browse files
authored
make watch mode work on input css
1 parent abf9e44 commit 4393216

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,11 @@ module.exports = (options = { plugins: [] }) => ({
4545
// Write the result file
4646
await writeFile(tmpFilePath, result.css);
4747

48+
// https://esbuild.github.io/plugins/#on-resolve-results
4849
return {
4950
path: tmpFilePath,
51+
// watch for changes to the original input for automatic rebuilds
52+
watchFiles: [ sourceFullPath ],
5053
};
5154
}
5255
);

0 commit comments

Comments
 (0)