Innovenergy_trunk/frontend/node_modules/testcafe-hammerhead/lib/processing/resources/stylesheet.js

18 lines
721 B
JavaScript

"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const resource_processor_base_1 = __importDefault(require("./resource-processor-base"));
const style_1 = __importDefault(require("../style"));
class StylesheetProcessor extends resource_processor_base_1.default {
processResource(stylesheet, _ctx, _charset, urlReplacer) {
return style_1.default.process(stylesheet, urlReplacer);
}
shouldProcessResource(ctx) {
return ctx.contentInfo.isCSS;
}
}
exports.default = new StylesheetProcessor();module.exports = exports.default;