Browse Source

chore: change minimaze method

stage
Vitalik 4 months ago
parent
commit
76fa28df1b
  1. 6
      .env
  2. 16
      package-lock.json
  3. 2
      package.json
  4. 25
      scripts/build.js
  5. 10
      yarn.lock

6
.env

@ -1,10 +1,10 @@ @@ -1,10 +1,10 @@
REACT_APP_MOD=production
# REACT_APP_MOD=production
# REACT_APP_MOD=local
# Sentry logger setup
SENTRY_ENVIROMENT=production
# SENTRY_ENVIROMENT=develop
# SENTRY_ENVIROMENT=production
SENTRY_ENVIROMENT=develop
# The SENTRY_AUTH_TOKEN variable is picked up by the Sentry Build Plugin.
# It's used for authentication when uploading source maps.

16
package-lock.json generated

@ -120,7 +120,7 @@ @@ -120,7 +120,7 @@
"react-google-maps": "^9.4.5",
"react-highcharts": "^16.0.2",
"react-highlight": "^0.12.0",
"react-hook-form": "^7.15.3",
"react-hook-form": "^7.22.5",
"react-hot-loader": "^4.13.0",
"react-i18next": "^10.2.0",
"react-images": "^0.5.19",
@ -23106,9 +23106,9 @@ @@ -23106,9 +23106,9 @@
}
},
"node_modules/react-hook-form": {
"version": "7.51.1",
"resolved": "https://registry.npmjs.org/react-hook-form/-/react-hook-form-7.51.1.tgz",
"integrity": "sha512-ifnBjl+kW0ksINHd+8C/Gp6a4eZOdWyvRv0UBaByShwU8JbVx5hTcTWEcd5VdybvmPTATkVVXk9npXArHmo56w==",
"version": "7.22.5",
"resolved": "https://registry.npmjs.org/react-hook-form/-/react-hook-form-7.22.5.tgz",
"integrity": "sha512-Q2zaeQFXdVQ8l3hcywhltH+Nzj4vo50wMVujHDVN/1Xy9IOaSZJwYBXA2CYTpK6rq41fnXviw3jTLb04c7Gu9Q==",
"engines": {
"node": ">=12.22.0"
},
@ -23117,7 +23117,7 @@ @@ -23117,7 +23117,7 @@
"url": "https://opencollective.com/react-hook-form"
},
"peerDependencies": {
"react": "^16.8.0 || ^17 || ^18"
"react": "^16.8.0 || ^17"
}
},
"node_modules/react-hot-loader": {
@ -48261,9 +48261,9 @@ @@ -48261,9 +48261,9 @@
}
},
"react-hook-form": {
"version": "7.51.1",
"resolved": "https://registry.npmjs.org/react-hook-form/-/react-hook-form-7.51.1.tgz",
"integrity": "sha512-ifnBjl+kW0ksINHd+8C/Gp6a4eZOdWyvRv0UBaByShwU8JbVx5hTcTWEcd5VdybvmPTATkVVXk9npXArHmo56w==",
"version": "7.22.5",
"resolved": "https://registry.npmjs.org/react-hook-form/-/react-hook-form-7.22.5.tgz",
"integrity": "sha512-Q2zaeQFXdVQ8l3hcywhltH+Nzj4vo50wMVujHDVN/1Xy9IOaSZJwYBXA2CYTpK6rq41fnXviw3jTLb04c7Gu9Q==",
"requires": {}
},
"react-hot-loader": {

2
package.json

@ -115,7 +115,7 @@ @@ -115,7 +115,7 @@
"react-google-maps": "^9.4.5",
"react-highcharts": "^16.0.2",
"react-highlight": "^0.12.0",
"react-hook-form": "^7.15.3",
"react-hook-form": "^7.22.5",
"react-hot-loader": "^4.13.0",
"react-i18next": "^10.2.0",
"react-images": "^0.5.19",

25
scripts/build.js

@ -27,6 +27,7 @@ const printHostingInstructions = require("react-dev-utils/printHostingInstructio @@ -27,6 +27,7 @@ const printHostingInstructions = require("react-dev-utils/printHostingInstructio
const FileSizeReporter = require("react-dev-utils/FileSizeReporter");
const printBuildError = require("react-dev-utils/printBuildError");
const UglifyJsPlugin = require("uglifyjs-3-webpack-plugin");
const TerserPlugin = require("terser-webpack-plugin");
const measureFileSizesBeforeBuild =
FileSizeReporter.measureFileSizesBeforeBuild;
@ -141,17 +142,29 @@ function build(previousFileSizes) { @@ -141,17 +142,29 @@ function build(previousFileSizes) {
optimization: {
removeAvailableModules: true,
removeEmptyChunks: true,
minimize: true,
minimizer: [
new UglifyJsPlugin({
uglifyOptions: {
warnings: false,
ie8: false,
output: {
comments: false,
new TerserPlugin({
terserOptions: {
compress: {
drop_console: true,
drop_debugger: true,
pure_funcs: ["console.log", "console.info"],
},
},
}),
],
// minimizer: [
// new UglifyJsPlugin({
// uglifyOptions: {
// warnings: true,
// ie8: false,
// output: {
// comments: false,
// },
// },
// }),
// ],
},
});
return new Promise((resolve, reject) => {

10
yarn.lock

@ -13563,10 +13563,10 @@ @@ -13563,10 +13563,10 @@
dependencies:
"highlight.js" "^9.11.0"
"react-hook-form@^7.15.3":
"integrity" "sha512-ifnBjl+kW0ksINHd+8C/Gp6a4eZOdWyvRv0UBaByShwU8JbVx5hTcTWEcd5VdybvmPTATkVVXk9npXArHmo56w=="
"resolved" "https://registry.npmjs.org/react-hook-form/-/react-hook-form-7.51.1.tgz"
"version" "7.51.1"
"react-hook-form@^7.22.5":
"integrity" "sha512-Q2zaeQFXdVQ8l3hcywhltH+Nzj4vo50wMVujHDVN/1Xy9IOaSZJwYBXA2CYTpK6rq41fnXviw3jTLb04c7Gu9Q=="
"resolved" "https://registry.npmjs.org/react-hook-form/-/react-hook-form-7.22.5.tgz"
"version" "7.22.5"
"react-hot-loader@^4.13.0":
"integrity" "sha512-ZlqCfVRqDJmMXTulUGic4lN7Ic1SXgHAFw7y/Jb7t25GBgTR0fYAJ8uY4mrpxjRyWGWmqw77qJQGnYbzCvBU7g=="
@ -14071,7 +14071,7 @@ @@ -14071,7 +14071,7 @@
"resolved" "https://registry.npmjs.org/react-yandex-metrika/-/react-yandex-metrika-2.6.0.tgz"
"version" "2.6.0"
"react@*", "react@^0.14.0 || ^15.0.0 || ^16.0.0", "react@^0.14.0 || ^15.0.0 || ^16.0.0 || ^17.0.0", "react@^0.14.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0", "react@^0.14.0 || ^15.0.0 || ^16.0.1", "react@^0.14.0 || ^15.0.0-rc || ^16.0.0-rc || ^16.0.0", "react@^0.14.0 || ^15.0.1 || ^16.0.0", "react@^0.14.7 || ^15.0.0 || ^16.0.0", "react@^0.14.9 || ^15.3.0 || ^16.0.0", "react@^0.14.9 || ^15.3.0 || ^16.0.0-rc || ^16.0", "react@^0.14.9 || >=15.3.0", "react@^15.0 || ^16.0", "react@^15.0.0 || ^16.0.0", "react@^15.0.0 || ^16.0.0 || ^17.0.0", "react@^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0", "react@^15.3.0 || ^16.0.0", "react@^15.5.0 || ^16.0.0-rc", "react@^15.5.x || ^16.x || ^17.x || ^18.x", "react@^16.0.0", "react@^16.12.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^20.0.0 || ^21.0.0", "react@^16.14 || ^17.0", "react@^16.3.0", "react@^16.4.2 || ^17.0.0 || ^18.0.0", "react@^16.6.3", "react@^16.8", "react@^16.8.0 || ^17 || ^18", "react@^16.8.0 || ^17.0.0", "react@^16.8.0 || ^17.0.0 || ^18.0.0", "react@^16.8.3", "react@^16.8.3 || ^17 || ^18", "react@^16.9.0", "react@^16.x || ^17 || ^18", "react@^17.0.1", "react@^17.0.2", "react@>= 0.14.0", "react@>= 15.0.0", "react@>= 16.8", "react@>= 16.8.0", "react@>= 16.8.6", "react@>=0.14.0", "react@>=0.14.0 <17.0.0", "react@>=15", "react@>=15.0.0", "react@>=16", "react@>=16.0.0", "react@>=16.11.0", "react@>=16.2.0", "react@>=16.6.0", "react@>=16.8", "react@>=16.8.3", "react@>=16.9.0", "react@~0.14 || ^15.0.0 || ^16.0.0", "react@0.13.x || 0.14.x || ^15.0.0-0 || 15.x.x || ^16.0.0-0 || ^16.x.x || ^17.x.x || ^18.x.x", "react@0.14.x || ^15.0.0 || ^16.0.0", "react@0.14.x || ^15.0.0 || ^16.0.0 || ^17.0.0", "react@15.x || 16.x || 17.x || 18.x", "react@17.0.2":
"react@*", "react@^0.14.0 || ^15.0.0 || ^16.0.0", "react@^0.14.0 || ^15.0.0 || ^16.0.0 || ^17.0.0", "react@^0.14.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0", "react@^0.14.0 || ^15.0.0 || ^16.0.1", "react@^0.14.0 || ^15.0.0-rc || ^16.0.0-rc || ^16.0.0", "react@^0.14.0 || ^15.0.1 || ^16.0.0", "react@^0.14.7 || ^15.0.0 || ^16.0.0", "react@^0.14.9 || ^15.3.0 || ^16.0.0", "react@^0.14.9 || ^15.3.0 || ^16.0.0-rc || ^16.0", "react@^0.14.9 || >=15.3.0", "react@^15.0 || ^16.0", "react@^15.0.0 || ^16.0.0", "react@^15.0.0 || ^16.0.0 || ^17.0.0", "react@^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0", "react@^15.3.0 || ^16.0.0", "react@^15.5.0 || ^16.0.0-rc", "react@^15.5.x || ^16.x || ^17.x || ^18.x", "react@^16.0.0", "react@^16.12.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^20.0.0 || ^21.0.0", "react@^16.14 || ^17.0", "react@^16.3.0", "react@^16.4.2 || ^17.0.0 || ^18.0.0", "react@^16.6.3", "react@^16.8", "react@^16.8.0 || ^17", "react@^16.8.0 || ^17.0.0", "react@^16.8.0 || ^17.0.0 || ^18.0.0", "react@^16.8.3", "react@^16.8.3 || ^17 || ^18", "react@^16.9.0", "react@^16.x || ^17 || ^18", "react@^17.0.1", "react@^17.0.2", "react@>= 0.14.0", "react@>= 15.0.0", "react@>= 16.8", "react@>= 16.8.0", "react@>= 16.8.6", "react@>=0.14.0", "react@>=0.14.0 <17.0.0", "react@>=15", "react@>=15.0.0", "react@>=16", "react@>=16.0.0", "react@>=16.11.0", "react@>=16.2.0", "react@>=16.6.0", "react@>=16.8", "react@>=16.8.3", "react@>=16.9.0", "react@~0.14 || ^15.0.0 || ^16.0.0", "react@0.13.x || 0.14.x || ^15.0.0-0 || 15.x.x || ^16.0.0-0 || ^16.x.x || ^17.x.x || ^18.x.x", "react@0.14.x || ^15.0.0 || ^16.0.0", "react@0.14.x || ^15.0.0 || ^16.0.0 || ^17.0.0", "react@15.x || 16.x || 17.x || 18.x", "react@17.0.2":
"integrity" "sha512-gnhPt75i/dq/z3/6q/0asP78D0u592D5L1pd7M8P+dck6Fu/jJeL6iVVK23fptSUZj8Vjf++7wXA8UNclGQcbA=="
"resolved" "https://registry.npmjs.org/react/-/react-17.0.2.tgz"
"version" "17.0.2"

Loading…
Cancel
Save