diff --git a/html/webpack.config.js b/html/webpack.config.js index d43e2d53..27ff1dc2 100644 --- a/html/webpack.config.js +++ b/html/webpack.config.js @@ -2,6 +2,7 @@ const path = require('path'); const CopyPlugin = require('copy-webpack-plugin'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const MiniCssExtractPlugin = require('mini-css-extract-plugin'); +const TerserPlugin = require('terser-webpack-plugin'); module.exports = { entry: { @@ -122,5 +123,12 @@ module.exports = { // } ] }) - ] + ], + optimization: { + minimizer: [ + new TerserPlugin({ + extractComments: false + }) + ] + } };