-
-
Notifications
You must be signed in to change notification settings - Fork 254
How to skip files rebuild everytime the app runs in dev mode? #55
Comments
@keyserfaty why your need this feature? Webpack v2 and above using cache for loaders by default and don't emit files if they not changed. |
@evilebottnawi I use webpack 3 already, and what you're saying doesn't happen at all. Every time I touch a css file which has a reference to a Most of the files in my project takes 200~500ms to rebuild when watching, but some of them which have many PNG files referenced on it, sometimes it takes > 5s, it's awful. |
@buzinas hm, yes, I'll try to find a solution, but I think it's related more to |
+ const cache = {}
if (options.emitFile === undefined || options.emitFile) {
// Don't emit the file again
+ if (cache[outputPath]) return
+ cache[outputPath] = true
this.emitFile(outputPath, content);
} ? |
Please test and try out #213 |
Why was this closed even though it wasn't fixed? |
It's not possible to fix this within |
@buzinas Yes should be fixed in webpack, feel free to create issue in |
Is there anyway I can skip the files being rebuild every time the build runs? I don't see why I would want that in files that haven't change. Am I missing something?
Thanks 馃憤
The text was updated successfully, but these errors were encountered: