Remove rename (causing EPERM error on Windows)#103
Remove rename (causing EPERM error on Windows)#103manuelcabral wants to merge 1 commit intobrowserify:masterfrom digisfera:master
Conversation
|
Doesn't really work. May trigger livereload ahead of time, for instance. |
|
@manuelcabral How does this 'not really work'? It works for me... |
|
@manuelcabral that might be because if you're watching a file on windows and it gets renamed, you'll often get a spurious EPERM nodejs/node-v0.x-archive#3250 nodejs/node-v0.x-archive#4337 |
|
The problem is slightly different when using this on Windows. There is no EPERM, but if the file is being watched the watch is triggered before the full file is written. This is not desirable. If the watch is used to trigger livereload, for instance, the browser will load an incomplete file. This however seems to work: digisfera@f3f61b4 . The difference is that it uses |
Fixes #83 by writing directly to the output file rather than writing to a temp file and renaming it.