@roots/bud-entrypoints
Version:
Webpack tools
18 lines (17 loc) • 667 B
JavaScript
import { __decorate } from "tslib";
import { DynamicOption, Extension } from '@roots/bud-framework/extension';
import { expose, label, options, plugin, } from '@roots/bud-framework/extension/decorators';
import { EntrypointsWebpackPlugin } from '@roots/entrypoints-webpack-plugin';
let BudEntrypoints = class BudEntrypoints extends Extension {
};
BudEntrypoints = __decorate([
label(`@roots/bud-entrypoints`),
expose(`entrypoints`),
options({
emitHtml: false,
publicPath: DynamicOption.make((bud) => bud.publicPath()),
type: `object`,
}),
plugin(EntrypointsWebpackPlugin)
], BudEntrypoints);
export default BudEntrypoints;