diff --git a/CHANGELOG.md b/CHANGELOG.md index a7d73e105f6..ecbf6740e21 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,27 @@ + +# 2.0.14 (2018-04-05) +[Full Changelog](https://github.com/webpack/webpack-cli/compare/2.0.13...2.0.14) + +## New Features + +* use npm ci for tests (#367) ([#368](https://github.com/webpack/webpack-cli/pull/368)) +* add envinfo as `webpack-cli info` command ([51ab19f](https://github.com/webpack/webpack-cli/commit/51ab19f)) +* --entry should override config.entry (#155) ([#358](https://github.com/webpack/webpack-cli/pull/358)) + +## Chore + +* coverage: added reporters inside package.json ([c7d80fb](https://github.com/webpack/webpack-cli/commit/c7d80fb)) +* upgrade: webpack 4.2 and other dependencies ([#362](https://github.com/webpack/webpack-cli/pull/362)) +* version: v.2.0.13 ([2222f1d](https://github.com/webpack/webpack-cli/commit/2222f1d)) + +## CLI + +* refactor: improve folder structure ([#371](https://github.com/webpack/webpack-cli/pull/371)) + +## Fix + +* loader,plugin: fix generators path bug ([b4bfafb](https://github.com/webpack/webpack-cli/commit/b4bfafb)) + # 2.0.13 (2018-03-22) [Full Changelog](https://github.com/webpack/webpack-cli/compare/2.0.12...2.0.13) diff --git a/docs/AddGenerator.html b/docs/AddGenerator.html index 9627a896163..b1c8f071357 100644 --- a/docs/AddGenerator.html +++ b/docs/AddGenerator.html @@ -186,13 +186,13 @@

Extends


diff --git a/docs/InitGenerator.html b/docs/InitGenerator.html index 81fc33d78e8..b2fa40511ea 100644 --- a/docs/InitGenerator.html +++ b/docs/InitGenerator.html @@ -186,13 +186,13 @@

Extends


diff --git a/docs/LoaderGenerator.html b/docs/LoaderGenerator.html index 754b255442c..05adf9d0b26 100644 --- a/docs/LoaderGenerator.html +++ b/docs/LoaderGenerator.html @@ -166,13 +166,13 @@

Extends


diff --git a/docs/PluginGenerator.html b/docs/PluginGenerator.html index 23f1e338f38..d98a2da2340 100644 --- a/docs/PluginGenerator.html +++ b/docs/PluginGenerator.html @@ -166,13 +166,13 @@

Extends


diff --git a/docs/commands_add.js.html b/docs/commands_add.js.html index 7baf8f29201..dbef78ec220 100644 --- a/docs/commands_add.js.html +++ b/docs/commands_add.js.html @@ -52,13 +52,13 @@

Source: commands/add.js


diff --git a/docs/commands_generate-loader.js.html b/docs/commands_generate-loader.js.html new file mode 100644 index 00000000000..c0fc7afb70d --- /dev/null +++ b/docs/commands_generate-loader.js.html @@ -0,0 +1,69 @@ + + + + + JSDoc: Source: commands/generate-loader.js + + + + + + + + + + +
+ +

Source: commands/generate-loader.js

+ + + + + + +
+
+
const yeoman = require("yeoman-environment");
+const { LoaderGenerator } = require("../generators/loader-generator");
+
+/**
+ * Runs a yeoman generator to create a new webpack loader project
+ * @returns {void}
+ */
+
+function loaderCreator() {
+	const env = yeoman.createEnv();
+	const generatorName = "webpack-loader-generator";
+
+	env.registerStub(LoaderGenerator, generatorName);
+
+	env.run(generatorName);
+}
+
+module.exports = loaderCreator;
+
+
+
+ + + + +
+ + + +
+ + + + + + + diff --git a/docs/commands_generate-plugin.js.html b/docs/commands_generate-plugin.js.html new file mode 100644 index 00000000000..5646b258b67 --- /dev/null +++ b/docs/commands_generate-plugin.js.html @@ -0,0 +1,69 @@ + + + + + JSDoc: Source: commands/generate-plugin.js + + + + + + + + + + +
+ +

Source: commands/generate-plugin.js

+ + + + + + +
+
+
const yeoman = require("yeoman-environment");
+const { PluginGenerator } = require("../generators/plugin-generator");
+
+/**
+ * Runs a yeoman generator to create a new webpack plugin project
+ * @returns {void}
+ */
+
+function pluginCreator() {
+	const env = yeoman.createEnv();
+	const generatorName = "webpack-plugin-generator";
+
+	env.registerStub(PluginGenerator, generatorName);
+
+	env.run(generatorName);
+}
+
+module.exports = pluginCreator;
+
+
+
+ + + + +
+ + + +
+ + + + + + + diff --git a/docs/commands_info.js.html b/docs/commands_info.js.html new file mode 100644 index 00000000000..cef3f6007f8 --- /dev/null +++ b/docs/commands_info.js.html @@ -0,0 +1,70 @@ + + + + + JSDoc: Source: commands/info.js + + + + + + + + + + +
+ +

Source: commands/info.js

+ + + + + + +
+
+
"use strict";
+
+const envinfo = require("envinfo");
+
+/**
+ * Prints debugging information for webpack issue reporting
+ */
+
+module.exports = function info() {
+	console.log(
+		envinfo.run({
+			System: ["OS", "CPU"],
+			Binaries: ["Node", "Yarn", "npm"],
+			Browsers: ["Chrome", "Firefox", "Safari"],
+			npmPackages: "*webpack*",
+			npmGlobalPackages: ["webpack", "webpack-cli"]
+		})
+	);
+};
+
+
+
+ + + + +
+ + + +
+ + + + + + + diff --git a/docs/commands_init.js.html b/docs/commands_init.js.html index dbb8b3171dc..6b285ade4c8 100644 --- a/docs/commands_init.js.html +++ b/docs/commands_init.js.html @@ -37,16 +37,19 @@

Source: commands/init.js

* First function to be called after running the init flag. This is a check, * if we are running the init command with no arguments or if we got dependencies * - * @param {Object} pkg - packages included when running the init command + * @param {Array} args - array of arguments such as + * packages included when running the init command * @returns {Function} creator/npmPackagesExists - returns an installation of the package, * followed up with a yeoman instance of that if there's packages. If not, it creates a defaultGenerator */ -module.exports = function initializeInquirer(pkg) { - if (pkg.length === 0) { +module.exports = function initializeInquirer(...args) { + const packages = args.slice(3); + + if (packages.length === 0) { return modifyHelper("init", defaultGenerator); } - return npmPackagesExists(pkg); + return npmPackagesExists(packages); }; @@ -58,13 +61,13 @@

Source: commands/init.js


diff --git a/docs/commands_make.js.html b/docs/commands_make.js.html index 7aee68552fa..54c71b3d9e0 100644 --- a/docs/commands_make.js.html +++ b/docs/commands_make.js.html @@ -48,13 +48,13 @@

Source: commands/make.js


diff --git a/docs/commands_migrate.js.html b/docs/commands_migrate.js.html index 7e383c37744..bfb531f4c0c 100644 --- a/docs/commands_migrate.js.html +++ b/docs/commands_migrate.js.html @@ -29,42 +29,83 @@

Source: commands/migrate.js

"use strict";
 
 const fs = require("fs");
+const path = require("path");
 const chalk = require("chalk");
 const diff = require("diff");
 const inquirer = require("inquirer");
 const PLazy = require("p-lazy");
 const Listr = require("listr");
 
-const validate = require("webpack").validate;
-const WebpackOptionsValidationError = require("webpack")
-	.WebpackOptionsValidationError;
+const { validate } = require("webpack");
+const { WebpackOptionsValidationError } = require("webpack");
 
 const runPrettier = require("../utils/run-prettier");
 
 /**
-*
-* Runs migration on a given configuration using AST's and promises
-* to sequentially transform a configuration file.
-*
-* @param {String} currentConfigPath - Location of the configuration to be migrated
-* @param {String} outputConfigPath - Location to where the configuration should be written
-* @param {Object} options - Any additional options regarding code style of the written configuration
-
-* @returns {Promise} Runs the migration using a promise that will throw any errors during each transform
-* or output if the user decides to abort the migration
-*/
-
-module.exports = function migrate(
-	currentConfigPath,
-	outputConfigPath,
-	options
-) {
-	const recastOptions = Object.assign(
-		{
-			quote: "single"
-		},
-		options
-	);
+ *
+ * Runs migration on a given configuration using AST's and promises
+ * to sequentially transform a configuration file.
+ *
+ * @param {Array} args - Migrate arguments such as input and
+ * output path
+ * @returns {Function} Runs the migration using the 'runMigrate'
+ * function.
+ */
+
+module.exports = function migrate(...args) {
+	const filePaths = args.slice(3);
+	if (!filePaths.length) {
+		const errMsg = "\n ✖ Please specify a path to your webpack config \n ";
+		console.error(chalk.red(errMsg));
+		return;
+	}
+	const currentConfigPath = path.resolve(process.cwd(), filePaths[0]);
+	let outputConfigPath;
+	if (!filePaths[1]) {
+		return inquirer
+			.prompt([
+				{
+					type: "confirm",
+					name: "confirmPath",
+					message:
+						"Migration output path not specified. " +
+						"Do you want to use your existing webpack " +
+						"configuration?",
+					default: "Y"
+				}
+			])
+			.then(ans => {
+				if (!ans["confirmPath"]) {
+					console.error(chalk.red("✖ ︎Migration aborted due no output path"));
+					return;
+				}
+				outputConfigPath = path.resolve(process.cwd(), filePaths[0]);
+				return runMigration(currentConfigPath, outputConfigPath);
+			})
+			.catch(err => {
+				console.error(err);
+			});
+	}
+	outputConfigPath = path.resolve(process.cwd(), filePaths[1]);
+	return runMigration(currentConfigPath, outputConfigPath);
+};
+
+/**
+ *
+ * Runs migration on a given configuration using AST's and promises
+ * to sequentially transform a configuration file.
+ *
+ * @param {String} currentConfigPath - input path for config
+ * @param {String} outputConfigPath - output path for config
+ * @returns {Promise} Runs the migration using a promise that
+ * will throw any errors during each transform or output if the
+ * user decides to abort the migration
+ */
+
+function runMigration(currentConfigPath, outputConfigPath) {
+	const recastOptions = {
+		quote: "single"
+	};
 	const tasks = new Listr([
 		{
 			title: "Reading webpack config",
@@ -173,11 +214,12 @@ 

Source: commands/migrate.js

}); }) .catch(err => { - console.log(chalk.red("✖ ︎Migration aborted due to some errors")); + const errMsg = "\n ✖ ︎Migration aborted due to some errors: \n"; + console.error(chalk.red(errMsg)); console.error(err); process.exitCode = 1; }); -}; +}
@@ -188,13 +230,13 @@

Source: commands/migrate.js


diff --git a/docs/commands_remove.js.html b/docs/commands_remove.js.html index 7f41cd7c2a6..69871dd5251 100644 --- a/docs/commands_remove.js.html +++ b/docs/commands_remove.js.html @@ -52,13 +52,13 @@

Source: commands/remove.js


diff --git a/docs/commands_serve.js.html b/docs/commands_serve.js.html index e8598c1cdfb..cf9fadd2618 100644 --- a/docs/commands_serve.js.html +++ b/docs/commands_serve.js.html @@ -209,13 +209,13 @@

Source: commands/serve.js


diff --git a/docs/commands_update.js.html b/docs/commands_update.js.html index 0fbc2dbdb6f..c92966384e7 100644 --- a/docs/commands_update.js.html +++ b/docs/commands_update.js.html @@ -52,13 +52,13 @@

Source: commands/update.js


diff --git a/docs/generators_add-generator.js.html b/docs/generators_add-generator.js.html index 94f5770ce08..663d71e48b7 100644 --- a/docs/generators_add-generator.js.html +++ b/docs/generators_add-generator.js.html @@ -486,13 +486,13 @@

Source: generators/add-generator.js


diff --git a/docs/generators_init-generator.js.html b/docs/generators_init-generator.js.html index d3b5cd5bd04..9b1562a82e5 100644 --- a/docs/generators_init-generator.js.html +++ b/docs/generators_init-generator.js.html @@ -59,11 +59,7 @@

Source: generators/init-generator.js

constructor(args, opts) { super(args, opts); this.isProd = false; - this.dependencies = [ - "webpack", - "webpack-cli", - "uglifyjs-webpack-plugin" - ]; + this.dependencies = ["webpack", "webpack-cli", "uglifyjs-webpack-plugin"]; this.configuration = { config: { webpackOptions: {}, @@ -147,7 +143,9 @@

Source: generators/init-generator.js

Confirm("prodConfirm", "Are you going to use this in production?") ]); }) - .then(prodConfirmAnswer => this.isProd = prodConfirmAnswer["prodConfirm"]) + .then( + prodConfirmAnswer => (this.isProd = prodConfirmAnswer["prodConfirm"]) + ) .then(() => { return this.prompt([ Confirm("babelConfirm", "Will you be using ES2015?") @@ -426,8 +424,9 @@

Source: generators/init-generator.js

) ]) .then(nameTypeAnswer => { - this.configuration.config.configName = nameTypeAnswer["nameType"].length ? - nameTypeAnswer["nameType"] : defaultName; + this.configuration.config.configName = nameTypeAnswer["nameType"].length + ? nameTypeAnswer["nameType"] + : defaultName; }) .then(() => { asyncNamePrompt(); @@ -451,13 +450,13 @@

Source: generators/init-generator.js


diff --git a/docs/generators_loader-generator.js.html b/docs/generators_loader-generator.js.html index 5ac2b2f9d09..9d4aa981c3b 100644 --- a/docs/generators_loader-generator.js.html +++ b/docs/generators_loader-generator.js.html @@ -53,6 +53,7 @@

Source: generators/loader-generator.js

* @class LoaderGenerator * @extends {Generator} */ + const LoaderGenerator = webpackGenerator( [ { @@ -64,7 +65,7 @@

Source: generators/loader-generator.js

validate: str => str.length > 0 } ], - path.join(__dirname, "templates"), + path.resolve(__dirname, "..", "generate-loader"), [ "src/cjs.js.tpl", "test/test-utils.js.tpl", @@ -76,7 +77,9 @@

Source: generators/loader-generator.js

"examples/simple/src/lazy-module.js.tpl", "examples/simple/src/static-esm-module.js.tpl" ], - ["src/_index.js.tpl"], + [ + "src/_index.js.tpl" + ], gen => ({ name: gen.props.name }) ); @@ -94,13 +97,13 @@

Source: generators/loader-generator.js


diff --git a/docs/generators_plugin-generator.js.html b/docs/generators_plugin-generator.js.html index fcd0be6cbed..a4dafe45017 100644 --- a/docs/generators_plugin-generator.js.html +++ b/docs/generators_plugin-generator.js.html @@ -49,7 +49,7 @@

Source: generators/plugin-generator.js

validate: str => str.length > 0 } ], - path.join(__dirname, "templates"), + path.resolve(__dirname, "..", "generate-plugin"), [ "src/cjs.js.tpl", "test/test-utils.js.tpl", @@ -58,7 +58,10 @@

Source: generators/plugin-generator.js

"examples/simple/src/lazy-module.js.tpl", "examples/simple/src/static-esm-module.js.tpl" ], - ["src/_index.js.tpl", "examples/simple/_webpack.config.js.tpl"], + [ + "src/_index.js.tpl", + "examples/simple/_webpack.config.js.tpl" + ], gen => ({ name: _.upperFirst(_.camelCase(gen.props.name)) }) ); @@ -75,13 +78,13 @@

Source: generators/plugin-generator.js


diff --git a/docs/generators_utils_entry.js.html b/docs/generators_utils_entry.js.html index cfc2821ff57..15728527146 100644 --- a/docs/generators_utils_entry.js.html +++ b/docs/generators_utils_entry.js.html @@ -126,13 +126,13 @@

Source: generators/utils/entry.js


diff --git a/docs/generators_utils_module.js.html b/docs/generators_utils_module.js.html index cfd07ec8bdd..31c7708ea4b 100644 --- a/docs/generators_utils_module.js.html +++ b/docs/generators_utils_module.js.html @@ -55,13 +55,13 @@

Source: generators/utils/module.js


diff --git a/docs/generators_utils_plugins.js.html b/docs/generators_utils_plugins.js.html index 026a67459f8..b8d44eba734 100644 --- a/docs/generators_utils_plugins.js.html +++ b/docs/generators_utils_plugins.js.html @@ -50,13 +50,13 @@

Source: generators/utils/plugins.js


diff --git a/docs/generators_utils_tooltip.js.html b/docs/generators_utils_tooltip.js.html index 76c14084cee..a504c880393 100644 --- a/docs/generators_utils_tooltip.js.html +++ b/docs/generators_utils_tooltip.js.html @@ -92,13 +92,13 @@

Source: generators/utils/tooltip.js


diff --git a/docs/generators_utils_validate.js.html b/docs/generators_utils_validate.js.html index 504c92f05ed..7bafef26d58 100644 --- a/docs/generators_utils_validate.js.html +++ b/docs/generators_utils_validate.js.html @@ -53,13 +53,13 @@

Source: generators/utils/validate.js


diff --git a/docs/generators_webpack-generator.js.html b/docs/generators_webpack-generator.js.html index 5313c15026a..589be25bd2b 100644 --- a/docs/generators_webpack-generator.js.html +++ b/docs/generators_webpack-generator.js.html @@ -96,7 +96,7 @@

Source: generators/webpack-generator.js

this.npmInstall(["webpack-defaults", "bluebird"], { "save-dev": true }).then(() => { - this.spawnCommand("npm", ["run", "webpack-defaults"]); + this.spawnCommand("npm", ["run", "defaults"]); }); } }; @@ -113,13 +113,13 @@

Source: generators/webpack-generator.js


diff --git a/docs/global.html b/docs/global.html index 3e59ef22942..bb5512d9b9a 100644 --- a/docs/global.html +++ b/docs/global.html @@ -4674,7 +4674,7 @@

loaderCr
Source:
@@ -5324,7 +5324,7 @@

pluginCr
Source:
@@ -6350,6 +6350,189 @@

Returns:
+

runMigration(currentConfigPath, outputConfigPath) → {Promise}

+ + + + + + +
+ Runs migration on a given configuration using AST's and promises +to sequentially transform a configuration file. +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
currentConfigPath + + +String + + + + input path for config
outputConfigPath + + +String + + + + output path for config
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+ Runs the migration using a promise that +will throw any errors during each transform or output if the +user decides to abort the migration +
+ + + +
+
+ Type +
+
+ +Promise + + +
+
+ + + + + + + + + + + + +

runSingleTransform(dirName, transformName, testFilePrefixopt, initOptions, action) → {function}

@@ -8326,13 +8509,13 @@
Returns:

diff --git a/docs/index.html b/docs/index.html index 3e8dbea2080..8b497d49098 100644 --- a/docs/index.html +++ b/docs/index.html @@ -50,13 +50,13 @@


diff --git a/docs/index.js.html b/docs/index.js.html index 8b77c675fdf..942c92f6fb0 100644 --- a/docs/index.js.html +++ b/docs/index.js.html @@ -28,8 +28,6 @@

Source: index.js

"use strict";
 
-const path = require("path");
-
 /**
  *
  * First function to be called after running a flag. This is a check,
@@ -42,49 +40,12 @@ 

Source: index.js

*/ module.exports = function initialize(command, args) { - const popArgs = args ? args.slice(2).pop() : null; - switch (command) { - case "init": { - const initPkgs = args.slice(2).length === 1 ? [] : [popArgs]; - //eslint-disable-next-line - return require("./commands/init.js")(initPkgs); - } - case "migrate": { - const filePaths = args.slice(2).length === 1 ? [] : [popArgs]; - if (!filePaths.length) { - throw new Error("Please specify a path to your webpack config"); - } - const inputConfigPath = path.resolve(process.cwd(), filePaths[0]); - //eslint-disable-next-line - return require("./commands/migrate.js")(inputConfigPath, inputConfigPath); - } - case "add": { - //eslint-disable-next-line - return require("./commands/add")(); - } - case "remove": { - //eslint-disable-next-line - return require("./commands/remove")(); - } - case "update": { - return require("./commands/update")(); - } - case "serve": { - return require("./commands/serve").serve(); - } - case "make": { - return require("./commands/make")(); - } - case "generate-loader": { - return require("./generate-loader/index.js")(); - } - case "generate-plugin": { - return require("./generate-plugin/index.js")(); - } - default: { - throw new Error(`Unknown command ${command} found`); - } + if (!command) { + throw new Error(`Unknown command ${command} found`); + } else if (command === "serve") { + return require(`./commands/${command}`).serve(); } + return require(`./commands/${command}`)(...args); };
@@ -96,13 +57,13 @@

Source: index.js


diff --git a/docs/init_index.js.html b/docs/init_index.js.html index e9e3a7ac27d..06acdabcf04 100644 --- a/docs/init_index.js.html +++ b/docs/init_index.js.html @@ -209,13 +209,13 @@

Source: init/index.js


diff --git a/docs/init_transformations_context_context.js.html b/docs/init_transformations_context_context.js.html index 5876a9b660b..fdac0ce058c 100644 --- a/docs/init_transformations_context_context.js.html +++ b/docs/init_transformations_context_context.js.html @@ -91,13 +91,13 @@

Source: init/transformations/context/context.js


diff --git a/docs/init_transformations_devServer_devServer.js.html b/docs/init_transformations_devServer_devServer.js.html index e114a868d34..fc9b4e1c46e 100644 --- a/docs/init_transformations_devServer_devServer.js.html +++ b/docs/init_transformations_devServer_devServer.js.html @@ -125,13 +125,13 @@

Source: init/transformations/devServer/devServer.js


diff --git a/docs/init_transformations_devtool_devtool.js.html b/docs/init_transformations_devtool_devtool.js.html index 59586605031..fe66ada792d 100644 --- a/docs/init_transformations_devtool_devtool.js.html +++ b/docs/init_transformations_devtool_devtool.js.html @@ -90,13 +90,13 @@

Source: init/transformations/devtool/devtool.js


diff --git a/docs/init_transformations_entry_entry.js.html b/docs/init_transformations_entry_entry.js.html index e969db9f62d..4fdfe1bd5f4 100644 --- a/docs/init_transformations_entry_entry.js.html +++ b/docs/init_transformations_entry_entry.js.html @@ -121,13 +121,13 @@

Source: init/transformations/entry/entry.js


diff --git a/docs/init_transformations_externals_externals.js.html b/docs/init_transformations_externals_externals.js.html index 73010703d22..735a711ee6a 100644 --- a/docs/init_transformations_externals_externals.js.html +++ b/docs/init_transformations_externals_externals.js.html @@ -145,13 +145,13 @@

Source: init/transformations/externals/externals.js


diff --git a/docs/init_transformations_mode_mode.js.html b/docs/init_transformations_mode_mode.js.html index 225e573400b..0a388f37c85 100644 --- a/docs/init_transformations_mode_mode.js.html +++ b/docs/init_transformations_mode_mode.js.html @@ -91,13 +91,13 @@

Source: init/transformations/mode/mode.js


diff --git a/docs/init_transformations_module_module.js.html b/docs/init_transformations_module_module.js.html index 3440e641152..2b10d1319ae 100644 --- a/docs/init_transformations_module_module.js.html +++ b/docs/init_transformations_module_module.js.html @@ -109,13 +109,13 @@

Source: init/transformations/module/module.js


diff --git a/docs/init_transformations_node_node.js.html b/docs/init_transformations_node_node.js.html index c0ad9f23719..f1149c11aa7 100644 --- a/docs/init_transformations_node_node.js.html +++ b/docs/init_transformations_node_node.js.html @@ -80,13 +80,13 @@

Source: init/transformations/node/node.js


diff --git a/docs/init_transformations_other_amd.js.html b/docs/init_transformations_other_amd.js.html index f3e81c8b538..6ed154c454b 100644 --- a/docs/init_transformations_other_amd.js.html +++ b/docs/init_transformations_other_amd.js.html @@ -120,13 +120,13 @@

Source: init/transformations/other/amd.js


diff --git a/docs/init_transformations_other_bail.js.html b/docs/init_transformations_other_bail.js.html index 4e0b8c9c915..96c4f0713c7 100644 --- a/docs/init_transformations_other_bail.js.html +++ b/docs/init_transformations_other_bail.js.html @@ -91,13 +91,13 @@

Source: init/transformations/other/bail.js


diff --git a/docs/init_transformations_other_cache.js.html b/docs/init_transformations_other_cache.js.html index 0c1cfd646af..486a8bea925 100644 --- a/docs/init_transformations_other_cache.js.html +++ b/docs/init_transformations_other_cache.js.html @@ -124,13 +124,13 @@

Source: init/transformations/other/cache.js


diff --git a/docs/init_transformations_other_merge.js.html b/docs/init_transformations_other_merge.js.html index bab15e7992d..41512fdf751 100644 --- a/docs/init_transformations_other_merge.js.html +++ b/docs/init_transformations_other_merge.js.html @@ -83,13 +83,13 @@

Source: init/transformations/other/merge.js


diff --git a/docs/init_transformations_other_parallelism.js.html b/docs/init_transformations_other_parallelism.js.html index fbad184f004..d3f568751b4 100644 --- a/docs/init_transformations_other_parallelism.js.html +++ b/docs/init_transformations_other_parallelism.js.html @@ -96,13 +96,13 @@

Source: init/transformations/other/parallelism.js


diff --git a/docs/init_transformations_other_profile.js.html b/docs/init_transformations_other_profile.js.html index 4c137d1f666..52610f3b654 100644 --- a/docs/init_transformations_other_profile.js.html +++ b/docs/init_transformations_other_profile.js.html @@ -124,13 +124,13 @@

Source: init/transformations/other/profile.js


diff --git a/docs/init_transformations_other_recordsInputPath.js.html b/docs/init_transformations_other_recordsInputPath.js.html index 512d74bc16d..2c6fb4158ed 100644 --- a/docs/init_transformations_other_recordsInputPath.js.html +++ b/docs/init_transformations_other_recordsInputPath.js.html @@ -136,13 +136,13 @@

Source: init/transformations/other/recordsInputPath.js
diff --git a/docs/init_transformations_other_recordsOutputPath.js.html b/docs/init_transformations_other_recordsOutputPath.js.html index d2e1c653d4a..efac9a5a735 100644 --- a/docs/init_transformations_other_recordsOutputPath.js.html +++ b/docs/init_transformations_other_recordsOutputPath.js.html @@ -136,13 +136,13 @@

Source: init/transformations/other/recordsOutputPath.js
diff --git a/docs/init_transformations_other_recordsPath.js.html b/docs/init_transformations_other_recordsPath.js.html index 32fc19f9d6f..83bbe7e3b1e 100644 --- a/docs/init_transformations_other_recordsPath.js.html +++ b/docs/init_transformations_other_recordsPath.js.html @@ -125,13 +125,13 @@

Source: init/transformations/other/recordsPath.js


diff --git a/docs/init_transformations_output_output.js.html b/docs/init_transformations_output_output.js.html index dac3d84d666..6b6b5c11e3e 100644 --- a/docs/init_transformations_output_output.js.html +++ b/docs/init_transformations_output_output.js.html @@ -120,13 +120,13 @@

Source: init/transformations/output/output.js


diff --git a/docs/init_transformations_performance_performance.js.html b/docs/init_transformations_performance_performance.js.html index 84ddc9252f6..a3d53545767 100644 --- a/docs/init_transformations_performance_performance.js.html +++ b/docs/init_transformations_performance_performance.js.html @@ -128,13 +128,13 @@

Source: init/transformations/performance/performance.js
diff --git a/docs/init_transformations_plugins_plugins.js.html b/docs/init_transformations_plugins_plugins.js.html index 75d8317cb77..cce283b482a 100644 --- a/docs/init_transformations_plugins_plugins.js.html +++ b/docs/init_transformations_plugins_plugins.js.html @@ -92,13 +92,13 @@

Source: init/transformations/plugins/plugins.js


diff --git a/docs/init_transformations_resolveLoader_resolveLoader.js.html b/docs/init_transformations_resolveLoader_resolveLoader.js.html index c1eeb9f02bb..8a904e09981 100644 --- a/docs/init_transformations_resolveLoader_resolveLoader.js.html +++ b/docs/init_transformations_resolveLoader_resolveLoader.js.html @@ -121,13 +121,13 @@

Source: init/transformations/resolveLoader/resolveLoader.
diff --git a/docs/init_transformations_resolve_resolve.js.html b/docs/init_transformations_resolve_resolve.js.html index 7455ffe4c5c..e117037d47f 100644 --- a/docs/init_transformations_resolve_resolve.js.html +++ b/docs/init_transformations_resolve_resolve.js.html @@ -109,13 +109,13 @@

Source: init/transformations/resolve/resolve.js


diff --git a/docs/init_transformations_stats_stats.js.html b/docs/init_transformations_stats_stats.js.html index 708120bbdae..5f2b730add7 100644 --- a/docs/init_transformations_stats_stats.js.html +++ b/docs/init_transformations_stats_stats.js.html @@ -120,13 +120,13 @@

Source: init/transformations/stats/stats.js


diff --git a/docs/init_transformations_target_target.js.html b/docs/init_transformations_target_target.js.html index f769cae5d2c..608f9e1ffef 100644 --- a/docs/init_transformations_target_target.js.html +++ b/docs/init_transformations_target_target.js.html @@ -91,13 +91,13 @@

Source: init/transformations/target/target.js


diff --git a/docs/init_transformations_top-scope_top-scope.js.html b/docs/init_transformations_top-scope_top-scope.js.html index 41b2e1e758b..3bf2c3aa93c 100644 --- a/docs/init_transformations_top-scope_top-scope.js.html +++ b/docs/init_transformations_top-scope_top-scope.js.html @@ -65,13 +65,13 @@

Source: init/transformations/top-scope/top-scope.js


diff --git a/docs/init_transformations_watch_watch.js.html b/docs/init_transformations_watch_watch.js.html index 9353b13ee0b..f59887e6c4d 100644 --- a/docs/init_transformations_watch_watch.js.html +++ b/docs/init_transformations_watch_watch.js.html @@ -121,13 +121,13 @@

Source: init/transformations/watch/watch.js


diff --git a/docs/init_transformations_watch_watchOptions.js.html b/docs/init_transformations_watch_watchOptions.js.html index d468afb59aa..3e890f8873d 100644 --- a/docs/init_transformations_watch_watchOptions.js.html +++ b/docs/init_transformations_watch_watchOptions.js.html @@ -136,13 +136,13 @@

Source: init/transformations/watch/watchOptions.js


diff --git a/docs/migrate_bannerPlugin_bannerPlugin.js.html b/docs/migrate_bannerPlugin_bannerPlugin.js.html index ea6c4cb89e6..6e795c42c8e 100644 --- a/docs/migrate_bannerPlugin_bannerPlugin.js.html +++ b/docs/migrate_bannerPlugin_bannerPlugin.js.html @@ -69,13 +69,13 @@

Source: migrate/bannerPlugin/bannerPlugin.js


diff --git a/docs/migrate_extractTextPlugin_extractTextPlugin.js.html b/docs/migrate_extractTextPlugin_extractTextPlugin.js.html index ca132c2fc2b..9e869becdc9 100644 --- a/docs/migrate_extractTextPlugin_extractTextPlugin.js.html +++ b/docs/migrate_extractTextPlugin_extractTextPlugin.js.html @@ -94,13 +94,13 @@

Source: migrate/extractTextPlugin/extractTextPlugin.js
diff --git a/docs/migrate_index.js.html b/docs/migrate_index.js.html index becc6fe0490..195a7289d44 100644 --- a/docs/migrate_index.js.html +++ b/docs/migrate_index.js.html @@ -115,13 +115,13 @@

Source: migrate/index.js


diff --git a/docs/migrate_loaderOptionsPlugin_loaderOptionsPlugin.js.html b/docs/migrate_loaderOptionsPlugin_loaderOptionsPlugin.js.html index 03fb050a156..7e9afc4838c 100644 --- a/docs/migrate_loaderOptionsPlugin_loaderOptionsPlugin.js.html +++ b/docs/migrate_loaderOptionsPlugin_loaderOptionsPlugin.js.html @@ -48,11 +48,9 @@

Source: migrate/loaderOptionsPlugin/loaderOptionsPlugin.j // If there is debug: true, set debug: true in the plugin if (ast.find(j.Identifier, { name: "debug" }).size()) { loaderOptions.debug = true; - ast - .find(j.Identifier, { name: "debug" }) - .forEach(p => { - p.parent.prune(); - }); + ast.find(j.Identifier, { name: "debug" }).forEach(p => { + p.parent.prune(); + }); } // If there is UglifyJsPlugin, set minimize: true @@ -86,13 +84,13 @@

Source: migrate/loaderOptionsPlugin/loaderOptionsPlugin.j
diff --git a/docs/migrate_loaders_loaders.js.html b/docs/migrate_loaders_loaders.js.html index 0c003ba4aff..ed513c9fe0c 100644 --- a/docs/migrate_loaders_loaders.js.html +++ b/docs/migrate_loaders_loaders.js.html @@ -415,13 +415,13 @@

Source: migrate/loaders/loaders.js


diff --git a/docs/migrate_outputPath_outputPath.js.html b/docs/migrate_outputPath_outputPath.js.html index c73b14c9162..4cba2ce4cc3 100644 --- a/docs/migrate_outputPath_outputPath.js.html +++ b/docs/migrate_outputPath_outputPath.js.html @@ -110,13 +110,13 @@

Source: migrate/outputPath/outputPath.js


diff --git a/docs/migrate_removeDeprecatedPlugins_removeDeprecatedPlugins.js.html b/docs/migrate_removeDeprecatedPlugins_removeDeprecatedPlugins.js.html index 39f67b5cadd..745ad15d857 100644 --- a/docs/migrate_removeDeprecatedPlugins_removeDeprecatedPlugins.js.html +++ b/docs/migrate_removeDeprecatedPlugins_removeDeprecatedPlugins.js.html @@ -80,13 +80,13 @@

Source: migrate/removeDeprecatedPlugins/removeDeprecatedP
diff --git a/docs/migrate_removeJsonLoader_removeJsonLoader.js.html b/docs/migrate_removeJsonLoader_removeJsonLoader.js.html index eeef03f5da6..2640cc5f35d 100644 --- a/docs/migrate_removeJsonLoader_removeJsonLoader.js.html +++ b/docs/migrate_removeJsonLoader_removeJsonLoader.js.html @@ -105,13 +105,13 @@

Source: migrate/removeJsonLoader/removeJsonLoader.js


diff --git a/docs/migrate_resolve_resolve.js.html b/docs/migrate_resolve_resolve.js.html index b9d3d6ca973..0a084448a4e 100644 --- a/docs/migrate_resolve_resolve.js.html +++ b/docs/migrate_resolve_resolve.js.html @@ -108,13 +108,13 @@

Source: migrate/resolve/resolve.js


diff --git a/docs/migrate_uglifyJsPlugin_uglifyJsPlugin.js.html b/docs/migrate_uglifyJsPlugin_uglifyJsPlugin.js.html index 4426ba96b4a..e1e319e8855 100644 --- a/docs/migrate_uglifyJsPlugin_uglifyJsPlugin.js.html +++ b/docs/migrate_uglifyJsPlugin_uglifyJsPlugin.js.html @@ -69,13 +69,13 @@

Source: migrate/uglifyJsPlugin/uglifyJsPlugin.js


diff --git a/docs/utils_ast-utils.js.html b/docs/utils_ast-utils.js.html index f3b03a0c474..c6d6da12169 100644 --- a/docs/utils_ast-utils.js.html +++ b/docs/utils_ast-utils.js.html @@ -712,13 +712,13 @@

Source: utils/ast-utils.js


diff --git a/docs/utils_copy-utils.js.html b/docs/utils_copy-utils.js.html index bb96270c4f2..92304420e9c 100644 --- a/docs/utils_copy-utils.js.html +++ b/docs/utils_copy-utils.js.html @@ -93,13 +93,13 @@

Source: utils/copy-utils.js


diff --git a/docs/utils_defineTest.js.html b/docs/utils_defineTest.js.html index c05bbf48ec3..3bcbccd60d2 100644 --- a/docs/utils_defineTest.js.html +++ b/docs/utils_defineTest.js.html @@ -141,13 +141,13 @@

Source: utils/defineTest.js


diff --git a/docs/utils_hashtable.js.html b/docs/utils_hashtable.js.html index a545e2cb0f0..18af39e0b5b 100644 --- a/docs/utils_hashtable.js.html +++ b/docs/utils_hashtable.js.html @@ -56,13 +56,13 @@

Source: utils/hashtable.js


diff --git a/docs/utils_is-local-path.js.html b/docs/utils_is-local-path.js.html index 5462a9bf031..81cb3c1f8b5 100644 --- a/docs/utils_is-local-path.js.html +++ b/docs/utils_is-local-path.js.html @@ -55,13 +55,13 @@

Source: utils/is-local-path.js


diff --git a/docs/utils_modify-config-helper.js.html b/docs/utils_modify-config-helper.js.html index fae5f34193c..937f19db9e2 100644 --- a/docs/utils_modify-config-helper.js.html +++ b/docs/utils_modify-config-helper.js.html @@ -111,13 +111,13 @@

Source: utils/modify-config-helper.js


diff --git a/docs/utils_npm-exists.js.html b/docs/utils_npm-exists.js.html index 1ec95ef8f26..e8a85c5a2d7 100644 --- a/docs/utils_npm-exists.js.html +++ b/docs/utils_npm-exists.js.html @@ -59,13 +59,13 @@

Source: utils/npm-exists.js


diff --git a/docs/utils_npm-packages-exists.js.html b/docs/utils_npm-packages-exists.js.html index 25e01eb03ac..03fa656678e 100644 --- a/docs/utils_npm-packages-exists.js.html +++ b/docs/utils_npm-packages-exists.js.html @@ -99,13 +99,13 @@

Source: utils/npm-packages-exists.js


diff --git a/docs/utils_package-manager.js.html b/docs/utils_package-manager.js.html index fd106380c42..298bbcae4e4 100644 --- a/docs/utils_package-manager.js.html +++ b/docs/utils_package-manager.js.html @@ -140,13 +140,13 @@

Source: utils/package-manager.js


diff --git a/docs/utils_prop-types.js.html b/docs/utils_prop-types.js.html index b3d8d399201..c6629895508 100644 --- a/docs/utils_prop-types.js.html +++ b/docs/utils_prop-types.js.html @@ -71,13 +71,13 @@

Source: utils/prop-types.js


diff --git a/docs/utils_resolve-packages.js.html b/docs/utils_resolve-packages.js.html index 3162056c7ab..4acdc49c5d7 100644 --- a/docs/utils_resolve-packages.js.html +++ b/docs/utils_resolve-packages.js.html @@ -134,13 +134,13 @@

Source: utils/resolve-packages.js


diff --git a/docs/utils_run-prettier.js.html b/docs/utils_run-prettier.js.html index 799cc3ee97d..19dc3dfdd44 100644 --- a/docs/utils_run-prettier.js.html +++ b/docs/utils_run-prettier.js.html @@ -80,13 +80,13 @@

Source: utils/run-prettier.js


diff --git a/package-lock.json b/package-lock.json index 960e23b800c..4c633a8ec13 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "webpack-cli", - "version": "2.0.13", + "version": "2.0.14", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index e260009bbe9..197f980515c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "webpack-cli", - "version": "2.0.13", + "version": "2.0.14", "description": "CLI for webpack & friends", "license": "MIT", "preferGlobal": true,