diff --git a/package-lock.json b/package-lock.json index 823a76b..d8a0fe1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@josias-r/wpds-scripts", - "version": "2.1.1", + "version": "2.1.2", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index bac7ad5..e4eb5b4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@josias-r/wpds-scripts", - "version": "2.1.1", + "version": "2.1.2", "description": "WordPress Dev Server scripts", "bin": { "wpds-scripts": "./bin/wpds-scripts.js" diff --git a/scripts/build.js b/scripts/build.js index 42fe94e..96edc78 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -23,13 +23,13 @@ webpack(config, (err, stats) => { return; } const info = stats.toJson(); - if (stats.hasErrors()) { - console.error(chalk.red(info.errors)); - status = chalk.red.bold("with errors."); - } if (stats.hasWarnings()) { console.warn(chalk.yellow(info.warnings)); status = chalk.yellow.bold("with warnings."); } + if (stats.hasErrors()) { + console.error(chalk.red(info.errors)); + status = chalk.red.bold("with errors."); + } console.log(logPrefix, chalk.green("Wepack build has finished"), status); });