setupLiveReload

  • function
steal-css.CSSModule.prototype.setupLiveReload  

Uses Steal live-reload to listen for changes in this module and then removes the <style> after a new version of the module has been loaded.

css.setupLiveReload(loader, moduleName)

Parameters

  1. loader {Loader}

    The Loader used to load this module.

  2. moduleName {moduleName}

    The moduleName of the module, so that we can listen for its changes.

Help us improve StealJS by taking our community survey