diff --git a/webpack.config.js b/webpack.config.js index 7cfe35089..936f416fb 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -1,7 +1,7 @@ // Copyright (C) 2017-2020 Smart code 203358507 const path = require('path'); -const child_process = require('child_process'); +const { execSync } = require('child_process'); const webpack = require('webpack'); const HtmlWebPackPlugin = require('html-webpack-plugin'); const MiniCssExtractPlugin = require('mini-css-extract-plugin'); @@ -10,7 +10,7 @@ const CopyWebpackPlugin = require('copy-webpack-plugin'); const TerserPlugin = require('terser-webpack-plugin'); const pachageJson = require('./package.json'); -const COMMIT_HASH = child_process.execSync('git rev-parse HEAD').toString().trim(); +const COMMIT_HASH = execSync('git rev-parse HEAD').toString().trim(); module.exports = (env, argv) => ({ mode: argv.mode, @@ -85,6 +85,7 @@ module.exports = (env, argv) => ({ removeAll: true, }, discardOverridden: false, + discardUnused: false, mergeIdents: false, normalizeDisplayValues: false, normalizePositions: false,