Skip to content

Commit

Permalink
Watch css changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mnaoumov committed Jan 20, 2025
1 parent 3d1e1e1 commit 206b09e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scripts/esbuild/watchCssChangesPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ import { resolvePathFromRootSafe } from '../Root.ts';
* @returns A plugin that watches for changes to CSS files and rebuilds the plugin when they change.
*/
export function watchCssChangesPlugin(): Plugin {
let isInitialized = false;

return {
name: 'watch-css-changes',
setup(build): void {
let isInitialized = false;

build.onLoad({ filter: /\.*/ }, (): null | OnLoadResult => {
if (isInitialized) {
return null;
Expand Down

0 comments on commit 206b09e

Please sign in to comment.