UNPKG

729 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3const base_webpack_command_1 = require("../base-webpack-command");
4const make_bundle_1 = require("../../services/webpack/runner/make-bundle");
5class BuildCommand extends base_webpack_command_1.BaseWebpackCommand {
6 getDefaultEnvironment() {
7 return "production";
8 }
9 getWebpackRunner(webpackConfig) {
10 return new make_bundle_1.MakeBundleStrategy(webpackConfig);
11 }
12}
13exports.default = BuildCommand;
14BuildCommand.description = "create an application bundle (for production, for example)";
15BuildCommand.args = base_webpack_command_1.BaseWebpackCommand.args;
16BuildCommand.flags = base_webpack_command_1.BaseWebpackCommand.flags;