css - Angular styles HMR with isolation (webpack hmr) -
i have setup angular 4, webpack & hmr.
the part care style substitution. did homework , not able find working solution far.
just check: have out-of-the-box solution this?
if not guess need understand topic more:
1) algorithm angular using assigning component specific attributes css?
2) there api in angular (it's javascript, don't mind if it's public or implementation detail/"hidden") allow me reload/substitute styles given component? did research on hmr , if such api exists or it's doable love try & use it.
3) please verify if assumptions true: technical perspective shouldn't difficult - angular (at least in setup) loads styles <style>
tags - if i'm not mistaken 1 per component type.
if true shouldn't big of deal find correct <style>
tag & replace it's content i'm getting webpack hmr.
the problem apply isolation - compile css & apply [__ngsomething] attributes in there.
wiki
Comments
Post a Comment