Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: webpack/webpack-cli
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3.3.7
Choose a base ref
...
head repository: webpack/webpack-cli
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v3.3.12
Choose a head ref
  • 19 commits
  • 19 files changed
  • 8 contributors

Commits on Aug 26, 2019

  1. Copy the full SHA
    d28f9f5 View commit details
  2. chore: vuln patch

    evenstensberg committed Aug 26, 2019
    Copy the full SHA
    55b770c View commit details

Commits on Aug 28, 2019

  1. Copy the full SHA
    065e87e View commit details
  2. chore: remove lint err

    evenstensberg committed Aug 28, 2019
    Copy the full SHA
    4275fd5 View commit details

Commits on Sep 5, 2019

  1. Copy the full SHA
    70bf934 View commit details
  2. Merge pull request #1065 from webpack/fix/patch

    fix: support both webpack versions
    evenstensberg authored Sep 5, 2019
    Copy the full SHA
    64fd810 View commit details
  3. chore: version update

    evenstensberg committed Sep 5, 2019
    Copy the full SHA
    7b1e946 View commit details

Commits on Sep 13, 2019

  1. Copy the full SHA
    ee001bd View commit details

Commits on Sep 17, 2019

  1. Merge pull request #1078 from lneveu/fix/process-exit-hang

    fix: fix webpack hanging under certain circumstance
    evenstensberg authored Sep 17, 2019
    Copy the full SHA
    a1341bd View commit details
  2. chore: v3.3.9

    evenstensberg committed Sep 17, 2019
    Copy the full SHA
    48c03ab View commit details

Commits on Sep 28, 2019

  1. chore: sec patch

    evenstensberg committed Sep 28, 2019
    Copy the full SHA
    6ad6099 View commit details

Commits on Oct 31, 2019

  1. Copy the full SHA
    1208aa6 View commit details
  2. Copy the full SHA
    08a7650 View commit details
  3. chore: v3.3.10

    evenstensberg committed Oct 31, 2019
    Copy the full SHA
    f9f0860 View commit details

Commits on Jan 31, 2020

  1. fix: ci (#1193)

    * fix: ci
    
    * chore(cli): remove macos from azure-pipelines
    smelukov authored Jan 31, 2020
    Copy the full SHA
    a037dc8 View commit details

Commits on Feb 11, 2020

  1. fix: release stable

    ematipico committed Feb 11, 2020
    Copy the full SHA
    c9927e3 View commit details

Commits on Feb 16, 2020

  1. docs(templates): Branding guide violation fix (#1226)

    * docs(templates): fix branding guide violation
    
    * docs(templates): Add article to title
    
    * chore: remove the from title
    
    Co-Authored-By: Rishabh Chawla <rishabh31121999@gmail.com>
    
    Co-authored-by: Rishabh Chawla <rishabh31121999@gmail.com>
    wizardofhogwarts and rishabh3112 authored Feb 16, 2020
    Copy the full SHA
    ab910df View commit details

Commits on May 31, 2020

  1. chore: bump dependencies for v3 (#1595)

    * fix: bump dependencies
    
    * chore: ignore devDependencies
    
    * chore: use a semver range rather than the exact version
    jamesgeorge007 authored May 31, 2020
    Copy the full SHA
    4f1a2f3 View commit details

Commits on Jun 3, 2020

  1. Copy the full SHA
    33574ec View commit details
65 changes: 65 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,68 @@
<a name="3.3.12"></a>

# 3.3.12 (2020-06-03)

[Full Changelog](https://github.com/webpack/webpack-cli/compare/v3.3.11...v3.3.12)

## Chore

- update dependencies

<a name="3.3.11"></a>

# 3.3.11 (2020-02-11)

[Full Changelog](https://github.com/webpack/webpack-cli/compare/v3.3.10...v3.3.11)

## Chore

- update dependencies

<a name="3.3.10"></a>

# 3.3.10 (2019-10-31)

[Full Changelog](https://github.com/webpack/webpack-cli/compare/v3.3.9...v3.3.10)

## New Features

- add new flag and patch sec dep ([#1102](https://github.com/webpack/webpack-cli/pull/1102))

## Chore

- remove un-synced tests ([08a7650](https://github.com/webpack/webpack-cli/commit/08a7650))
- sec patch ([6ad6099](https://github.com/webpack/webpack-cli/commit/6ad6099))

<a name="3.3.9"></a>

# 3.3.9 (2019-09-17)

[Full Changelog](https://github.com/webpack/webpack-cli/compare/v3.3.8...v3.3.9)

## Fix

- use process.exitCode instead of process.exit in compilerCallback ([ee001bd](https://github.com/webpack/webpack-cli/commit/ee001bd))

<a name="3.3.8"></a>

# 3.3.8 (2019-09-05)

[Full Changelog](https://github.com/webpack/webpack-cli/compare/v3.3.7...v3.3.8)

## Chore

- remove lint err ([4275fd5](https://github.com/webpack/webpack-cli/commit/4275fd5))
- abstract validation ([065e87e](https://github.com/webpack/webpack-cli/commit/065e87e))
- vuln patch ([55b770c](https://github.com/webpack/webpack-cli/commit/55b770c))

## Fix

- support both webpack versions ([d28f9f5](https://github.com/webpack/webpack-cli/commit/d28f9f5))

## Tests

- add schema tests ([70bf934](https://github.com/webpack/webpack-cli/commit/70bf934))

<a name="3.3.7"></a>

# 3.3.7 (2019-08-18)
7 changes: 1 addition & 6 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
jobs:
- template: azure-pipelines-template.yml
parameters:
name: macOS
vmImage: macOS-10.13

- template: azure-pipelines-template.yml
parameters:
name: Linux
@@ -16,4 +11,4 @@ jobs:
# vmImage: vs2017-win2016

variables:
nproc: 3
nproc: 3
3 changes: 2 additions & 1 deletion bin/cli.js
Original file line number Diff line number Diff line change
@@ -314,7 +314,8 @@ For more information, see https://webpack.js.org/api/cli/.`);
lastHash = null;
console.error(err.stack || err);
if (err.details) console.error(err.details);
process.exit(1); // eslint-disable-line
process.exitCode = 1;
return;
}
if (outputOptions.json) {
stdout.write(JSON.stringify(stats.toJson(outputOptions), null, 2) + "\n");
5 changes: 5 additions & 0 deletions bin/config/config-yargs.js
Original file line number Diff line number Diff line change
@@ -117,6 +117,11 @@ module.exports = function(yargs) {
group: BASIC_GROUP,
requiresArg: true
},
"no-cache": {
type: "boolean",
describe: "Disables cached builds",
group: BASIC_GROUP
},
"module-bind": {
type: "string",
describe: "Bind an extension to a loader",
15 changes: 6 additions & 9 deletions bin/utils/convert-argv.js
Original file line number Diff line number Diff line change
@@ -3,10 +3,8 @@ const fs = require("fs");
fs.existsSync = fs.existsSync || path.existsSync;
const interpret = require("interpret");
const prepareOptions = require("./prepareOptions");
const webpackConfigurationSchema = require("../config/webpackConfigurationSchema.json");
const validateSchema = require("webpack").validateSchema;
const WebpackOptionsValidationError = require("webpack").WebpackOptionsValidationError;
const findup = require("findup-sync");
const validateOptions = require("./validate-options");

module.exports = function(...args) {
const argv = args[1] || args[0];
@@ -137,12 +135,7 @@ module.exports = function(...args) {

function processConfiguredOptions(options) {
if (options) {
const webpackConfigurationValidationErrors = validateSchema(webpackConfigurationSchema, options);
if (webpackConfigurationValidationErrors.length) {
const error = new WebpackOptionsValidationError(webpackConfigurationValidationErrors);
console.error(error.message, `\nReceived: ${typeof options} : ${JSON.stringify(options, null, 2)}`);
process.exit(-1); // eslint-disable-line
}
validateOptions(options);
} else {
options = {};
}
@@ -441,6 +434,10 @@ module.exports = function(...args) {
addPlugin(options, new HotModuleReplacementPlugin());
});

ifBooleanArg("no-cache", function() {
options.cache = false;
});

ifBooleanArg("debug", function() {
const LoaderOptionsPlugin = require("webpack").LoaderOptionsPlugin;
addPlugin(
21 changes: 21 additions & 0 deletions bin/utils/validate-options.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
const webpackConfigurationSchema = require("../config/webpackConfigurationSchema.json");
const validateSchema = require("webpack").validateSchema;

module.exports = function validateOptions(options) {
let error;
try {
const errors = validateSchema(webpackConfigurationSchema, options);
if (errors && errors.length > 0) {
const { WebpackOptionsValidationError } = require("webpack");
error = new WebpackOptionsValidationError(errors);
}
} catch (err) {
error = err;
}

if (error) {
console.error(error.message);
// eslint-disable-next-line no-process-exit
process.exit(-1);
}
};
Loading