Webpack compiling twice most of the time
I am usin Webstorm writing Angular in typescript. When I save changes, webpack compiles, but when I click my project page in the browser, webpack compiles again, and sometimes it compiles twice if I touch the browser, without saving first.
I guess this can be fixed in webpack configuration but I don't know how.
Thanks, gsmari
Please sign in to leave a comment.
>when I click my project page in the browser, webpack compiles again
Well... Normally Webstorm auto-saves files when you move focus out of it (to the browser, for example) -can it be the issue?
Also, please try disabling
Use "safe write"inSettings | Appearance & Behavior | System Settings- does it make any difference?Tried disabling "safe write", seems to help a little sometimes, can I turn off the "auto-save on focus out" ? I would like til save manually only, then webpack would not "double detect" the changes.
Yes - in
Settings | Appearance & Behavior | System Settings, disableSave files on frame deactivation