Skip to content

Commit

Permalink
style: minor tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Oct 23, 2023
1 parent f20a3e3 commit dca312c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/compiler/assets-manager.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as chokidar from 'chokidar';
import { dirname, join, sep } from 'path';
import { statSync } from 'fs';
import { sync } from 'glob';
import { dirname, join, sep } from 'path';
import * as shell from 'shelljs';
import {
ActionOnFile,
Expand Down Expand Up @@ -94,10 +94,10 @@ export class AssetsManager {
if (isWatchEnabled || item.watchAssets) {
// prettier-ignore
const watcher = chokidar
.watch(item.glob, { ignored: item.exclude })
.on('add', (path: string) => this.actionOnFile({ ...option, path, action: 'change' }))
.on('change', (path: string) => this.actionOnFile({ ...option, path, action: 'change' }))
.on('unlink', (path: string) => this.actionOnFile({ ...option, path, action: 'unlink' }));
.watch(item.glob, { ignored: item.exclude })
.on('add', (path: string) => this.actionOnFile({ ...option, path, action: 'change' }))
.on('change', (path: string) => this.actionOnFile({ ...option, path, action: 'change' }))
.on('unlink', (path: string) => this.actionOnFile({ ...option, path, action: 'unlink' }));

this.watchers.push(watcher);
} else {
Expand Down

0 comments on commit dca312c

Please sign in to comment.