Skip to content

Commit

Permalink
Update webpack.config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
sweep-ai[bot] authored Aug 3, 2023
1 parent 93f0fba commit 6c23b2d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const path = require('path');
const webpack = require('webpack');
const TerserPlugin = require('terser-webpack-plugin');

module.exports = {
Expand All @@ -15,5 +16,10 @@ module.exports = {
},
optimization: {
minimizer: [new TerserPlugin({ extractComments: false })],
}
},
plugins: [
new webpack.DefinePlugin({
VERSION: JSON.stringify(process.env.npm_package_version)
})
]
};

0 comments on commit 6c23b2d

Please sign in to comment.