{"action":"opened","issue":{"url":"https://api.github.com/repos/willyelm/pug-html-loader/issues/16","repository_url":"https://api.github.com/repos/willyelm/pug-html-loader","labels_url":"https://api.github.com/repos/willyelm/pug-html-loader/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/willyelm/pug-html-loader/issues/16/comments","events_url":"https://api.github.com/repos/willyelm/pug-html-loader/issues/16/events","html_url":"https://github.com/willyelm/pug-html-loader/issues/16","id":197839518,"number":16,"title":"Mixins are not updating when using pug templates in Angular 2 and running webpack-dev-server","user":{"login":"jussikinnula","id":7287118,"avatar_url":"https://avatars.githubusercontent.com/u/7287118?v=3","gravatar_id":"","url":"https://api.github.com/users/jussikinnula","html_url":"https://github.com/jussikinnula","followers_url":"https://api.github.com/users/jussikinnula/followers","following_url":"https://api.github.com/users/jussikinnula/following{/other_user}","gists_url":"https://api.github.com/users/jussikinnula/gists{/gist_id}","starred_url":"https://api.github.com/users/jussikinnula/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jussikinnula/subscriptions","organizations_url":"https://api.github.com/users/jussikinnula/orgs","repos_url":"https://api.github.com/users/jussikinnula/repos","events_url":"https://api.github.com/users/jussikinnula/events{/privacy}","received_events_url":"https://api.github.com/users/jussikinnula/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-28T11:35:32Z","updated_at":"2016-12-28T11:35:32Z","closed_at":null,"body":"A starting point to reproduce the issue would be this starter repository:\r\nhttps://github.com/jussikinnula/angular2-universal-wordpress\r\n\r\nSimply just put a Pug mixin file into `src/app/shared/templates` -directory, as file `src/app/shared/templates/test.pug` for example this:\r\n\r\n```\r\nmixin test()\r\n    h1 Testing\r\n```\r\n\r\nThen call the mixin for example from frontpage component's `src/app/frontpage/frontpage.component.pug` template:\r\n\r\n```\r\ninclude ../shared/templates/test.pug\r\n.content-block\r\n    h2 Front Page\r\n    p There is no place like home.\r\n    +test()\r\n```\r\n\r\nThen start running WebPack Development Server by giving command: `npm run dev`.\r\n\r\nAfter the initial loading has completed, observe that `+test()` really gives the H1 heading \"Testing\". Then try to change it to something else. After observing that nothing changes, try to change `src/app/frontpage/frontpage.component.pug` H2 heading."}}
{"actor":{"display_login":"jussikinnula"}}