Skip to content

Commit

Permalink
Add WarningsToErrorsPlugin to webpack to avoid missing build problems…
Browse files Browse the repository at this point in the history
… on CI (#9647)
  • Loading branch information
danez committed Mar 7, 2019
1 parent 7c909e8 commit b2b96e0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -66,6 +66,7 @@
"through2": "^2.0.0",
"vinyl-buffer": "^1.0.1",
"vinyl-source-stream": "^2.0.0",
"warnings-to-errors-webpack-plugin": "^2.0.0",
"webpack": "^3.4.1",
"webpack-dependency-suite": "^2.4.4",
"webpack-stream": "^4.0.0"
Expand Down
2 changes: 2 additions & 0 deletions scripts/gulp-tasks.js
Expand Up @@ -20,6 +20,7 @@ const rename = require("gulp-rename");
const webpack = require("webpack");
const { RootMostResolvePlugin } = require("webpack-dependency-suite");
const DuplicatePackageCheckerPlugin = require("duplicate-package-checker-webpack-plugin");
const WarningsToErrorsPlugin = require("warnings-to-errors-webpack-plugin");
const webpackStream = require("webpack-stream");
const uglify = require("gulp-uglify");

Expand Down Expand Up @@ -62,6 +63,7 @@ function webpackBuild(opts) {
libraryTarget: "umd",
},
plugins: [
new WarningsToErrorsPlugin(),
new DuplicatePackageCheckerPlugin({
exclude(instance) {
return instance.name === "semver";
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Expand Up @@ -9047,6 +9047,11 @@ walker@~1.0.5:
dependencies:
makeerror "1.0.x"

warnings-to-errors-webpack-plugin@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/warnings-to-errors-webpack-plugin/-/warnings-to-errors-webpack-plugin-2.0.0.tgz#1ce862fa845c77a3c21bb68c839efaa7ebbdb9fb"
integrity sha512-0Girb3F5xc5U1TpYMiLDcie5oB+Ko2EuujOYyS3aXpKS4Yp264WkIuJ+0vF8wnmkDkmZAOBxahBedEL0mLjHQA==

watch@~0.18.0:
version "0.18.0"
resolved "https://registry.yarnpkg.com/watch/-/watch-0.18.0.tgz#28095476c6df7c90c963138990c0a5423eb4b986"
Expand Down

0 comments on commit b2b96e0

Please sign in to comment.