shoten import of execSync

This commit is contained in:
nklhrstv 2021-09-02 18:59:27 +03:00
parent de5a131eb1
commit 55d9171094

View file

@ -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,