2013-01-31 01:49:25 +08:00
|
|
|
module.exports = function(optimist) {
|
|
|
|
optimist
|
|
|
|
|
|
|
|
.string("config").describe("config")
|
|
|
|
|
|
|
|
.string("context").describe("context")
|
|
|
|
|
|
|
|
.string("entry").describe("entry")
|
|
|
|
|
|
|
|
.string("module-bind").describe("module-bind")
|
|
|
|
|
|
|
|
.string("module-bind-post").describe("module-bind-post")
|
|
|
|
|
|
|
|
.string("module-bind-pre").describe("module-bind-pre")
|
|
|
|
|
|
|
|
.string("output-path").describe("output-path")
|
|
|
|
|
|
|
|
.string("output-file").describe("output-file")
|
|
|
|
|
|
|
|
.string("output-chunk-file").describe("output-chunk-file")
|
|
|
|
|
2013-03-26 23:54:41 +08:00
|
|
|
.string("output-named-chunk-file").describe("output-named-chunk-file")
|
|
|
|
|
|
|
|
.string("output-source-map-file").describe("output-source-map-file")
|
|
|
|
|
2013-01-31 01:49:25 +08:00
|
|
|
.string("output-public-path").describe("output-public-path")
|
|
|
|
|
|
|
|
.boolean("output-pathinfo").describe("output-pathinfo")
|
|
|
|
|
|
|
|
.string("output-library").describe("output-library")
|
|
|
|
|
|
|
|
.string("output-library-target").describe("output-library-target")
|
|
|
|
|
2013-05-31 18:22:40 +08:00
|
|
|
.string("records-input-path").describe("records-input-path")
|
|
|
|
|
|
|
|
.string("records-output-path").describe("records-output-path")
|
|
|
|
|
|
|
|
.string("records-path").describe("records-path")
|
|
|
|
|
2013-09-24 20:48:08 +08:00
|
|
|
.string("define").describe("define")
|
|
|
|
|
2013-03-19 14:56:44 +08:00
|
|
|
.string("target").describe("target")
|
2013-01-31 01:49:25 +08:00
|
|
|
|
|
|
|
.boolean("cache").describe("cache")
|
|
|
|
|
|
|
|
.boolean("watch").alias("watch", "w").describe("watch")
|
|
|
|
|
2013-06-19 19:49:57 +08:00
|
|
|
.boolean("hot").alias("hot", "h").describe("hot")
|
|
|
|
|
2013-01-31 01:49:25 +08:00
|
|
|
.boolean("debug").alias("debug", "d").describe("debug")
|
|
|
|
|
|
|
|
.string("devtool").describe("devtool")
|
|
|
|
|
|
|
|
.boolean("progress").describe("progress")
|
|
|
|
|
|
|
|
.string("resolve-alias").describe("resolve-alias")
|
|
|
|
|
|
|
|
.string("resolve-loader-alias").describe("resolve-loader-alias")
|
|
|
|
|
|
|
|
.describe("optimize-max-chunks")
|
|
|
|
|
2013-02-11 18:29:05 +08:00
|
|
|
.describe("optimize-min-chunk-size")
|
|
|
|
|
2013-01-31 01:49:25 +08:00
|
|
|
.boolean("optimize-minimize").describe("optimize-minimize")
|
|
|
|
|
2013-05-08 19:28:54 +08:00
|
|
|
.boolean("optimize-occurence-order").describe("optimize-occurence-order")
|
|
|
|
|
2013-06-12 22:16:06 +08:00
|
|
|
.boolean("optimize-dedupe").describe("optimize-dedupe")
|
|
|
|
|
2013-05-13 19:34:00 +08:00
|
|
|
.string("prefetch").describe("prefetch")
|
|
|
|
|
2013-03-19 14:56:44 +08:00
|
|
|
.string("provide").describe("provide")
|
|
|
|
|
2013-01-31 01:49:25 +08:00
|
|
|
.string("plugin").describe("plugin")
|
|
|
|
|
2013-03-26 23:54:41 +08:00
|
|
|
.boolean("bail").describe("bail")
|
|
|
|
|
2013-05-08 20:47:13 +08:00
|
|
|
.boolean("profile").describe("profile")
|
|
|
|
|
2013-03-26 23:54:41 +08:00
|
|
|
.boolean("d").describe("d", "shortcut for --debug --devtool sourcemap --output-pathinfo")
|
|
|
|
|
|
|
|
.boolean("p").describe("p", "shortcut for --optimize-minimize");
|
2013-01-31 01:49:25 +08:00
|
|
|
};
|