UNPKG

@roots/bud

Version:

Configurable, extensible build tools for modern single and multi-page web applications

32 lines (30 loc) 939 B
import BuildCommand from '@roots/bud/cli/commands/build'; import { Command } from '@roots/bud-support/clipanion'; /** * `bud build production` command */ export default class BuildProductionCommand extends BuildCommand { /** * {@link Command.paths} */ static paths = [[`production`], [`build`, `production`]]; /** * {@link Command.usage} */ static usage = Command.Usage({ category: `build`, description: `Compiles source assets in \`production\` mode.`, details: `\ \`bud build production\` compiles source assets in \`production\` mode. If you run this command without a bud configuration file \`bud\` will look for an entrypoint at \`@src/index.js\`. `, examples: [ [ `Compile source assets in \`production\` mode`, `$0 build production`, ], ], }); mode = `production`; }