javascript - Adding and removing stylesheets with webpack -
i'm interested in using webpack spa (i haven't used before), have several pages, each own bundle of js, css , html.
firstly, there way remove stylesheets aren't being used using webpack? @ documentation, seems there isn't. example, have #wrapper
div needs have width: auto
pages, width: 100%
page needs full screen. if modules require()
stylesheets, keep being added html, , last 1 loaded have control on width
, whereas want current page's stylesheet loaded. there way remove stylesheets using webpack? or there better solution problem?
in addition, webpack have callback stylesheets? if need run code when css has loaded (i mean onload callback has fired, not when tag added html), there proper way of doing it?
Comments
Post a Comment