From 6c23b2d8daed4dcf0fe51d6bec6ba0568ce8f2fb Mon Sep 17 00:00:00 2001 From: "sweep-ai[bot]" <128439645+sweep-ai[bot]@users.noreply.github.com> Date: Thu, 3 Aug 2023 21:48:23 +0000 Subject: [PATCH] Update webpack.config.js --- webpack.config.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index f3016985c..c711acd7c 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -1,4 +1,5 @@ const path = require('path'); +const webpack = require('webpack'); const TerserPlugin = require('terser-webpack-plugin'); module.exports = { @@ -15,5 +16,10 @@ module.exports = { }, optimization: { minimizer: [new TerserPlugin({ extractComments: false })], - } + }, + plugins: [ + new webpack.DefinePlugin({ + VERSION: JSON.stringify(process.env.npm_package_version) + }) + ] };