{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular-cli/issues/4593","repository_url":"https://api.github.com/repos/angular/angular-cli","labels_url":"https://api.github.com/repos/angular/angular-cli/issues/4593/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular-cli/issues/4593/comments","events_url":"https://api.github.com/repos/angular/angular-cli/issues/4593/events","html_url":"https://github.com/angular/angular-cli/issues/4593","id":206777388,"number":4593,"title":"Webpack Rebuilds When Swap Files (*.swp, *.swo, *.swn, ...) Change","user":{"login":"frederikaalund","id":545423,"avatar_url":"https://avatars.githubusercontent.com/u/545423?v=3","gravatar_id":"","url":"https://api.github.com/users/frederikaalund","html_url":"https://github.com/frederikaalund","followers_url":"https://api.github.com/users/frederikaalund/followers","following_url":"https://api.github.com/users/frederikaalund/following{/other_user}","gists_url":"https://api.github.com/users/frederikaalund/gists{/gist_id}","starred_url":"https://api.github.com/users/frederikaalund/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frederikaalund/subscriptions","organizations_url":"https://api.github.com/users/frederikaalund/orgs","repos_url":"https://api.github.com/users/frederikaalund/repos","events_url":"https://api.github.com/users/frederikaalund/events{/privacy}","received_events_url":"https://api.github.com/users/frederikaalund/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-02-10T11:50:49Z","updated_at":"2017-02-13T12:51:41Z","closed_at":null,"body":"### OS?\r\nLinux (Ubuntu 16.04)\r\n\r\n### Versions.\r\n@angular/cli: 1.0.0-beta.31\r\nnode: 6.9.4\r\nos: linux x64\r\n@angular/common: 4.0.0-beta.7\r\n@angular/compiler: 4.0.0-beta.7\r\n@angular/core: 4.0.0-beta.7\r\n@angular/forms: 4.0.0-beta.7\r\n@angular/http: 4.0.0-beta.7\r\n@angular/platform-browser: 4.0.0-beta.7\r\n@angular/platform-browser-dynamic: 4.0.0-beta.7\r\n@angular/router: 3.4.7\r\n@angular/cli: 1.0.0-beta.31\r\n@angular/compiler-cli: 2.4.7\r\n\r\n### Repro steps.\r\n1. Run `ng serve`\r\n2. Edit any source file in vim (or similar) but do not save\r\n3. Webpack recompiles even though you didn't save.\r\n    1. This is most likely due to vim saving any edit to swap files (*.swp, *.swo, *.swn, ...). Webpack registers the change to the swap file and triggers the recompilation.\r\n\r\nThis seems unnecessary and slows down the workflow. When I actually *do* want to trigger an update, I save the file. However, now I have to wait for the previous (unnecessary) compilation of the swap files to finish before my actual changed files will be compiled again.\r\n\r\nAlso, webpack constantly recompiles in the background (due to vim saving to the swap files for every new line) which is a little distracting.\r\n\r\nCan you configure webpack to ignore common swap files (*.swp, *.swo, *.swn, ...) *or* allow me—the user—to specify, which files to ignore?\r\n\r\nI like @angular/cli. I like webpack. I like vim. Can there be peace?"},"comment":{"url":"https://api.github.com/repos/angular/angular-cli/issues/comments/279382065","html_url":"https://github.com/angular/angular-cli/issues/4593#issuecomment-279382065","issue_url":"https://api.github.com/repos/angular/angular-cli/issues/4593","id":279382065,"user":{"login":"frederikaalund","id":545423,"avatar_url":"https://avatars.githubusercontent.com/u/545423?v=3","gravatar_id":"","url":"https://api.github.com/users/frederikaalund","html_url":"https://github.com/frederikaalund","followers_url":"https://api.github.com/users/frederikaalund/followers","following_url":"https://api.github.com/users/frederikaalund/following{/other_user}","gists_url":"https://api.github.com/users/frederikaalund/gists{/gist_id}","starred_url":"https://api.github.com/users/frederikaalund/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frederikaalund/subscriptions","organizations_url":"https://api.github.com/users/frederikaalund/orgs","repos_url":"https://api.github.com/users/frederikaalund/repos","events_url":"https://api.github.com/users/frederikaalund/events{/privacy}","received_events_url":"https://api.github.com/users/frederikaalund/received_events","type":"User","site_admin":false},"created_at":"2017-02-13T12:51:41Z","updated_at":"2017-02-13T12:51:41Z","body":"@d3viant0ne Thanks for the workaround. I'm now using\r\n\r\n    set dir=$HOME/.vimtmp/swap//\r\n    if !isdirectory(&dir) | call mkdir(&dir, 'p', 0700) | endif\r\n\r\nThis is good for now. Though I'd still like to see this just work out of the box as part of @angular/cli."}}
{"actor":{"display_login":"frederikaalund"}}