Skip to content

Make images smaller using best-in-class codecs, right in the browser.

JavaScript

Get rid of DeprecationWarning output filter

Jason Millera5e2952e8c08
diff --git a/webpack.config.js b/webpack.config.js
index 33125a4d..c36f3f03 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -12,12 +12,6 @@ const CopyPlugin = require('copy-webpack-plugin');
const WatchTimestampsPlugin = require('./config/watch-timestamps-plugin');
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
-const oldWrite = process.stderr.write;
-process.stderr.write = chunk => {
- if (String(chunk).indexOf('DeprecationWarning:')!==-1) return;
- return oldWrite.call(process.stderr, chunk);
-};
-
function parseJson(text, fallback) {
try {
return JSON.parse(text);