Skip to main content

Add extractComments: false to webpack.config.js

 
const TerserPlugin = require('terser-webpack-plugin');
.
.
.
module.exports = {
.
.
.
  optimization: {
    minimizer: [new TerserPlugin({
      extractComments: false,
    })],
  },
.
.
.
};

Add extractComments: false to webpack.config.js

const TerserPlugin = require('terser-webpack-plugin');
.
.
.

  optimization: {
    minimizer: [new TerserPlugin({
      extractComments: false,
    })],
  },

Add extractComments: false to webpack.config.js

 
const TerserPlugin = require('terser-webpack-plugin');
.
.
.
module.exports = {
.
.
.
  optimization: {
    minimizer: [new TerserPlugin({
      extractComments: false,
    })],
  },
.
.
.
};
Source Link
Mohammad Dayyan
  • 22.2k
  • 44
  • 169
  • 239

Add extractComments: false to webpack.config.js

const TerserPlugin = require('terser-webpack-plugin');
.
.
.

  optimization: {
    minimizer: [new TerserPlugin({
      extractComments: false,
    })],
  },