From 646953d5443635a120c493e1b0027db3470e0b97 Mon Sep 17 00:00:00 2001 From: QCQCQC <1220204124@zust.edu.cn> Date: Fri, 1 Nov 2024 13:55:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BA=E9=A1=B9=E7=9B=AE=E4=B8=AD=E7=9A=84ts?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=B7=BB=E5=8A=A0=E4=BA=86style=20module?= =?UTF-8?q?=E7=9A=84=E5=A2=9E=E5=BC=BA=E6=8F=92=E4=BB=B6=EF=BC=88typescrip?= =?UTF-8?q?t=20server=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/settings.json | 1 + package.json | 7 ++++--- tsconfig.json | 5 +++++ 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 7a73a41..00ad71f 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,2 +1,3 @@ { + "typescript.tsdk": "node_modules\\typescript\\lib" } \ No newline at end of file diff --git a/package.json b/package.json index 4beb143..57cf05e 100644 --- a/package.json +++ b/package.json @@ -62,7 +62,6 @@ "antd-mobile-icons": "^0.3.0", "classnames": "^2.3.1", "crypto-browserify": "3.12.0", - "readable-stream": "3.6.2", "crypto-js": "^4.1.1", "dayjs": "^1.11.5", "echarts": "^5.3.0", @@ -95,6 +94,7 @@ "react-responsive": "^9.0.0-beta.10", "react-router-dom": "^6.4.0", "react-slick": "^0.29.0", + "readable-stream": "3.6.2", "rmc-pull-to-refresh": "^1.0.13", "uuid": "^8.3.2" }, @@ -205,7 +205,8 @@ "webpack": "^5.86.0", "webpack-dev-server": "^4.15.1", "webpack-manifest-plugin": "^4.0.2", - "workbox-webpack-plugin": "^6.4.1" + "workbox-webpack-plugin": "^6.4.1", + "typescript-plugin-css-modules": "^5.1.0" }, "browserslist": { "production": [ @@ -230,4 +231,4 @@ "readable-stream": "3.6.2" } } -} \ No newline at end of file +} diff --git a/tsconfig.json b/tsconfig.json index 7b638cc..a3dd027 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -16,6 +16,11 @@ "dom.iterable", "esnext" ], + "plugins": [ + { + "name": "typescript-plugin-css-modules", + }, + ], //"outDir": "lib", /* Redirect output structure to the directory. */ //"rootDir": "src", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */ "types": [