1 | (function (factory) {
|
2 | if (typeof module === "object" && typeof module.exports === "object") {
|
3 | var v = factory(require, exports);
|
4 | if (v !== undefined) module.exports = v;
|
5 | }
|
6 | else if (typeof define === "function" && define.amd) {
|
7 | define(["require", "exports"], factory);
|
8 | }
|
9 | })(function (require, exports) {
|
10 | "use strict";
|
11 | Object.defineProperty(exports, "__esModule", { value: true });
|
12 | module.exports = (CLI) => {
|
13 | CLI.addActionToCommand(['build', 'serve'], (options) => {
|
14 | const spawnArgs = [];
|
15 | if (options.gzip) {
|
16 | spawnArgs.push(`--gzip`);
|
17 | }
|
18 | if (options.worker) {
|
19 | spawnArgs.push(`--worker`);
|
20 | }
|
21 | return spawnArgs;
|
22 | });
|
23 | };
|
24 | });
|
25 |
|
\ | No newline at end of file |