优化打包体积
This commit is contained in:
parent
498ab4a46b
commit
cb2ca9b741
11
package.json
11
package.json
|
@ -24,7 +24,6 @@
|
||||||
"css-loader": "^1.0.0",
|
"css-loader": "^1.0.0",
|
||||||
"dotenv": "8.2.0",
|
"dotenv": "8.2.0",
|
||||||
"dotenv-expand": "5.1.0",
|
"dotenv-expand": "5.1.0",
|
||||||
"echarts": "^5.2.1",
|
|
||||||
"eslint": "^7.11.0",
|
"eslint": "^7.11.0",
|
||||||
"eslint-config-react-app": "^6.0.0",
|
"eslint-config-react-app": "^6.0.0",
|
||||||
"eslint-plugin-flowtype": "^5.2.0",
|
"eslint-plugin-flowtype": "^5.2.0",
|
||||||
|
@ -58,7 +57,6 @@
|
||||||
"postcss-preset-env": "6.7.0",
|
"postcss-preset-env": "6.7.0",
|
||||||
"postcss-safe-parser": "5.0.2",
|
"postcss-safe-parser": "5.0.2",
|
||||||
"prompts": "2.4.0",
|
"prompts": "2.4.0",
|
||||||
"qrcode": "^1.4.4",
|
|
||||||
"qrcode.react": "^1.0.1",
|
"qrcode.react": "^1.0.1",
|
||||||
"react": "^17.0.2",
|
"react": "^17.0.2",
|
||||||
"react-app-polyfill": "^2.0.0",
|
"react-app-polyfill": "^2.0.0",
|
||||||
|
@ -72,7 +70,6 @@
|
||||||
"react-window": "^1.8.6",
|
"react-window": "^1.8.6",
|
||||||
"resolve": "1.18.1",
|
"resolve": "1.18.1",
|
||||||
"resolve-url-loader": "^3.1.2",
|
"resolve-url-loader": "^3.1.2",
|
||||||
"sass-loader": "^10.0.5",
|
|
||||||
"semver": "7.3.2",
|
"semver": "7.3.2",
|
||||||
"style-loader": "1.3.0",
|
"style-loader": "1.3.0",
|
||||||
"swiper": "^3.4.2",
|
"swiper": "^3.4.2",
|
||||||
|
@ -152,15 +149,7 @@
|
||||||
"^.+\\.css$": "<rootDir>/config/jest/cssTransform.js",
|
"^.+\\.css$": "<rootDir>/config/jest/cssTransform.js",
|
||||||
"^(?!.*\\.(js|jsx|mjs|cjs|ts|tsx|css|json)$)": "<rootDir>/config/jest/fileTransform.js"
|
"^(?!.*\\.(js|jsx|mjs|cjs|ts|tsx|css|json)$)": "<rootDir>/config/jest/fileTransform.js"
|
||||||
},
|
},
|
||||||
"transformIgnorePatterns": [
|
|
||||||
"[/\\\\]node_modules[/\\\\].+\\.(js|jsx|mjs|cjs|ts|tsx)$",
|
|
||||||
"^.+\\.module\\.(css|sass|scss)$"
|
|
||||||
],
|
|
||||||
"modulePaths": [],
|
"modulePaths": [],
|
||||||
"moduleNameMapper": {
|
|
||||||
"^react-native$": "react-native-web",
|
|
||||||
"^.+\\.module\\.(css|sass|scss)$": "identity-obj-proxy"
|
|
||||||
},
|
|
||||||
"moduleFileExtensions": [
|
"moduleFileExtensions": [
|
||||||
"web.js",
|
"web.js",
|
||||||
"js",
|
"js",
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import Extension from "@/pages/extension/main/main";
|
import Extension from "@/pages/extension/main/main";
|
||||||
import Overview from "@/pages/overview/main/main";
|
|
||||||
import Distributor from "@/pages/distributor/main/main";
|
import Distributor from "@/pages/distributor/main/main";
|
||||||
import ExchangeCodeList from "@/pages/exchangecode/list/list";
|
import ExchangeCodeList from "@/pages/exchangecode/list/list";
|
||||||
import ExchangeCodeAdd from "@/pages/exchangecode/add/add";
|
import ExchangeCodeAdd from "@/pages/exchangecode/add/add";
|
||||||
|
@ -49,11 +48,6 @@ const router = [
|
||||||
component: Extension,
|
component: Extension,
|
||||||
meta: { exact: true },
|
meta: { exact: true },
|
||||||
},
|
},
|
||||||
{
|
|
||||||
path: "/home/overview",
|
|
||||||
component: Overview,
|
|
||||||
meta: { exact: true },
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
path: "/home/distributor",
|
path: "/home/distributor",
|
||||||
component: Distributor,
|
component: Distributor,
|
||||||
|
|
Loading…
Reference in New Issue