From 8874e6a2330b47bc67634f58c7e65acb50a4f995 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Sun, 22 Nov 2020 12:38:24 +0100 Subject: [PATCH] webpack: Declare constants as such --- webpack.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index 6223502..f9ede12 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -7,7 +7,7 @@ const CompressionPlugin = require("compression-webpack-plugin"); const nodedir = path.resolve((process.env.SRCDIR || __dirname), "node_modules"); /* A standard nodejs and webpack pattern */ -var production = process.env.NODE_ENV === 'production'; +const production = process.env.NODE_ENV === 'production'; // Non-JS files which are copied verbatim to dist/ const copy_files = [ @@ -30,7 +30,7 @@ if (production) { } /* keep this in sync with cockpit.git */ -var babel_loader = { +const babel_loader = { loader: "babel-loader", options: { presets: [