Title: Add HMR when using component styles and template · Issue #39367 · angular/angular · GitHub
Open Graph Title: Add HMR when using component styles and template · Issue #39367 · angular/angular
X Title: Add HMR when using component styles and template · Issue #39367 · angular/angular
Description: I'm submitting a ... (check one with "x") [ ] bug report => search github for a similar issue or PR before submitting [X] feature request [ ] support request => Please do not submit support request here, instead see https://github.com/an...
Open Graph Description: I'm submitting a ... (check one with "x") [ ] bug report => search github for a similar issue or PR before submitting [X] feature request [ ] support request => Please do not submit support request...
X Description: I'm submitting a ... (check one with "x") [ ] bug report => search github for a similar issue or PR before submitting [X] feature request [ ] support request => Please do not su...
Opengraph URL: https://github.com/angular/angular/issues/39367
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add HMR when using component styles and template ","articleBody":"**I'm submitting a ...** (check one with \"x\")\n\n```\n[ ] bug report =\u003e search github for a similar issue or PR before submitting\n[X] feature request\n[ ] support request =\u003e Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question\n```\n\n**Current behavior** \n\n\u003c!-- Describe how the bug manifests. --\u003e\n\nAlthough the Angular+Webpack docs present the combo as \"an excellent alternative to the SystemJS approach\", loading component styles via `styles` or `styleUrls` results in a full page refresh, instead of style injection, which occurs when using SystemJS+lite-server.\n\n**Expected behavior**\n\n\u003c!-- Describe what the behavior would be without the bug. --\u003e\n\nA core feature of using Webpack+Webpack-dev-server in development is the availability of Hot Module Replacement. It is expected that HMR would work for css injection regardless of the style loading strategy used. Instead, currently changes to css or scss files which are included in a component's styles result in a full page reload.\n\n**Reproduction of the problem**\n\n\u003c!-- If the current behavior is a bug or you can illustrate your feature request better with an example, please provide the steps to reproduce and if possible a minimal demo of the problem via https://plnkr.co or similar (you can use this template as a starting point: http://plnkr.co/edit/tpl:AvJOMERrnz94ekVua0u5). --\u003e\n\n**What is the motivation / use case for changing the behavior?**\n\n\u003c!-- Describe the motivation or the concrete use case --\u003e\n\nSpeed up the Angular 2 development process for CSS developers\n\n**Please tell us about your environment:**\n\n\u003c!-- Operating system, IDE, package manager, HTTP server, ... --\u003e\n- **Angular version:** 2.0.0\n \n \u003c!-- Check whether this is still an issue in the most recent Angular version --\u003e\n- **Browser:** [**_all_** | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ] \n \n \u003c!-- All browsers where this could be reproduced --\u003e\n- **Language:** [all | **_TypeScript 2.02_** | ES6/7 | ES5]\n- **Webpack version:** 1.13.2\n- **Webpack-dev-server version:** 1.14.1\n- **Node (for AoT issues):** `node --version` = 6.5.0\n","author":{"url":"https://github.com/mikkelrd","@type":"Person","name":"mikkelrd"},"datePublished":"2016-09-27T17:54:30.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":78},"url":"https://github.com/39367/angular/issues/39367"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:4d4b6911-626e-2ae0-97d5-192ffb22a110 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B8C8:C45D8:51DB1C8:6E2EF20:6964DDBA |
| html-safe-nonce | 026133f70277158df9754a712d663824839ccca24e3379d3aeec295e54d859ad |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOEM4OkM0NUQ4OjUxREIxQzg6NkUyRUYyMDo2OTY0RERCQSIsInZpc2l0b3JfaWQiOiI0MjEwODE2MDg5NDM3MDM1OTYyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | aa8eb7dd38295544f8b9f70ef0a664c317ae36aac53a02faa2441489825857a3 |
| hovercard-subject-tag | issue:726579817 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/39367/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0702a62f6c53fe38e5a692f20da6e39e7adc7748f7d0d90e54b72e7d8d70dfcf/angular/angular/issues/39367 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0702a62f6c53fe38e5a692f20da6e39e7adc7748f7d0d90e54b72e7d8d70dfcf/angular/angular/issues/39367 |
| og:image:alt | I'm submitting a ... (check one with "x") [ ] bug report => search github for a similar issue or PR before submitting [X] feature request [ ] support request => Please do not submit support request... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mikkelrd |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5838582163a1256e5ebd5086b7e1dc5cea93d82086c9c8b1395fb50f6ddab28d |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular git https://github.com/angular/angular.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 24195339 |
| octolytics-dimension-repository_nwo | angular/angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24195339 |
| octolytics-dimension-repository_network_root_nwo | angular/angular |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8f997e7f84bd1db9537ba403fa68be0da3423594 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width