id = "webpack" name = "webpack" description = "Module bundler for JavaScript applications." homepage = "https://webpack.js.org" executables = ["webpack"] [commands] format = 1 label = "Bundle" description = "Root build options only; stats-*, cache-* and experiments flags are omitted." quality = "ai-draft" base = "fig:webpack" parser = { end_of_options = "--", interleave = "permute", long_equals = true, short_attached = true, short_bundles = false } [[commands.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/webpack.ts" license = "MIT" [[commands.field]] id = "config" label = "Config file" type = "path" option = ["--config", "-c"] path = { kind = "file", role = "input" } sources = ["fig"] [[commands.field]] id = "mode" label = "Mode" type = "string" option = ["--mode"] suggestions = [{ value = "production", label = "production" }, { value = "development", label = "development" }, { value = "none", label = "none" }] sources = ["fig"] [[commands.field]] id = "entry" label = "Entry" type = "string" option = ["--entry"] sources = ["fig"] [[commands.field]] id = "output_path" label = "Output path" type = "path" option = ["--output-path", "-o"] path = { kind = "directory", role = "output" } sources = ["fig"] [[commands.field]] id = "target" label = "Target" type = "string" option = ["--target", "-t"] sources = ["fig"] [[commands.field]] id = "devtool" label = "Devtool" type = "string" option = ["--devtool", "-d"] sources = ["fig"] [[commands.field]] id = "watch" label = "Watch" type = "boolean" option = ["--watch", "-w"] sources = ["fig"] [[commands.field]] id = "analyze" label = "Bundle analyzer" type = "boolean" option = ["--analyze"] sources = ["fig"] [[commands.field]] id = "bail" label = "Bail on first error" type = "boolean" option = ["--bail"] sources = ["fig"] [[commands.task]] id = "build" label = "Build" fields = ["config", "mode", "entry", "output_path", "target", "devtool", "watch", "analyze", "bail"] required = [] [[commands.group]] id = "basic" label = "Basic" fields = ["config", "mode", "entry", "output_path", "target", "devtool", "watch", "analyze", "bail"]