shaman-website-compiler
Version:
Compile raw HTML, CSS and Javascript into the smallest possible, SEO friendly website.
26 lines • 790 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Bundle = void 0;
var Bundle = /** @class */ (function () {
function Bundle(obj) {
if (!obj)
return;
this.name = obj.name;
this.type = obj.type;
this.files = obj.files;
this.extension = obj.extension;
this.content = obj.content;
}
Object.defineProperty(Bundle.prototype, "path", {
get: function () {
if (this.extension)
return "".concat(this.name, ".").concat(this.extension);
return "".concat(this.name, ".").concat(this.type);
},
enumerable: false,
configurable: true
});
return Bundle;
}());
exports.Bundle = Bundle;
//# sourceMappingURL=bundle.js.map