@omnia/tooling-vue
Version:
Used to bundle and serve manifests web component that build on Vue framework.
16 lines (15 loc) • 512 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.stylesheet = void 0;
const base_1 = require("../base");
/** Transform stylesheet files */
exports.stylesheet = (0, base_1.defineTransformer)("stylesheet", () => {
return {
test(code, id) {
return id.endsWith('.css');
},
transform(code, id, fileGraph, ctx) {
return code.replace(/url\(\'\/wwwroot/g, `url('https://localhost:${ctx.options.hosting.port}`);
}
};
});