Skip to content

Commit

Permalink
fix(dev-server): allow file change events to pass through (#3001)
Browse files Browse the repository at this point in the history
update dev-server to allow changes in directories listed in copy tasks 
of a stencil config file to be updated instantly, rather than having to
restart the server.

STENCIL-29: Feature Request: Ability to watch a copy task source and refresh www build when modified
  • Loading branch information
splitinfinities committed Aug 17, 2021
1 parent ff97e38 commit b84dd11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sys/node/node-sys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ export function createNodeSys(c: { process?: any } = {}) {
const tsFileWatcher = tsSysWatchDirectory(
p,
(fileName) => {
callback(normalizePath(fileName), null);
callback(normalizePath(fileName), 'fileUpdate');
},
recursive
);
Expand Down

0 comments on commit b84dd11

Please sign in to comment.