From 243e3dd14b3d5784e9c7c97addd5e0bdcc7d226a Mon Sep 17 00:00:00 2001 From: GaurangTandon <1gaurangtandon@gmail.com> Date: Sat, 29 Jun 2019 08:42:22 +0530 Subject: [PATCH] add node on MODE --- webpack.config.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index 28e132b..8bea670 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -22,8 +22,9 @@ module.exports = { // development mode ensures terser (es6 minifier) is not run // see https://webpack.js.org/configuration/mode module: moduleObject, - // this must always be development, since source files - // should not be minified, according Webstore policy + // this mode can be production, as chrome allows minification (but not obfuscation) + // but letting it be "development" means I can easily debug the issue + // in case of a console error on user's machine :) mode: "development", entry: { background: `${__dirname}/js/background.js`,