UNPKG

aurelia-useable-style-loader

Version:

Automatically loads/unloads styles using webpack's style-loader/useable

23 lines 821 B
import { getLogger } from 'aurelia-logging'; var CSSViewEngineHooks = /** @class */ (function () { function CSSViewEngineHooks(owner) { this._logger = getLogger('aurelia-useable-style-loader'); this._logger.debug('instatiating CSSViewEngineHooks', owner); this.owner = owner; } CSSViewEngineHooks.prototype.beforeBind = function () { if (this.css) { this._logger.debug('using css resource'); this.css.use(); } }; CSSViewEngineHooks.prototype.beforeUnbind = function () { if (this.css) { this._logger.debug('unusing css resource'); this.css.unuse(); } }; return CSSViewEngineHooks; }()); export { CSSViewEngineHooks }; //# sourceMappingURL=css-view-engine-hooks.js.map