webpack-entries-autodiscovery
Version:
Entries autodiscovery for webpack
22 lines • 800 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var DiscoverEntriesConfig = /** @class */ (function () {
function DiscoverEntriesConfig(params) {
if (params === void 0) { params = {}; }
this.basePath = '';
this.entriesDirName = 'src';
this.entryFilename = 'index';
this.entryExtensions = ['js'];
Object.assign(this, params);
}
Object.defineProperty(DiscoverEntriesConfig.prototype, "entriesPath", {
get: function () {
return [this.basePath, this.entriesDirName].join('/');
},
enumerable: true,
configurable: true
});
return DiscoverEntriesConfig;
}());
exports.DiscoverEntriesConfig = DiscoverEntriesConfig;
//# sourceMappingURL=discover-entries-config.js.map