diff --git a/biome.json b/biome.json index 8d4ab507..cee7317f 100644 --- a/biome.json +++ b/biome.json @@ -27,7 +27,8 @@ "rules": { "recommended": true, "suspicious": { - "noExplicitAny": "off" + "noExplicitAny": "off", + "noUnknownAtRules": "off" }, "correctness": { "useExhaustiveDependencies": "off", diff --git a/config/config.ts b/config/config.ts index a0e4bd7d..1314ba01 100644 --- a/config/config.ts +++ b/config/config.ts @@ -144,6 +144,7 @@ export default defineConfig({ // 解决首次加载时白屏的问题 { src: join(PUBLIC_PATH, 'scripts/loading.js'), async: true }, ], + //================ pro 插件配置 ================= presets: ['umi-presets-pro'], /** @@ -166,6 +167,7 @@ export default defineConfig({ projectName: 'swagger', }, ], + mock: { include: ['mock/**/*', 'src/pages/**/_mock.ts'], }, @@ -181,4 +183,5 @@ export default defineConfig({ define: { 'process.env.CI': process.env.CI, }, + tailwindcss: {}, }); diff --git a/package.json b/package.json index 3e07ce98..8b7579eb 100644 --- a/package.json +++ b/package.json @@ -77,7 +77,8 @@ "umi-presets-pro": "^2.0.3", "umi-serve": "^1.9.11", "@biomejs/biome": "^2.0.6", - "@types/node": "^24.0.10" + "@types/node": "^24.0.10", + "tailwindcss": "^3" }, "engines": { "node": ">=20.0.0" diff --git a/tailwind.config.js b/tailwind.config.js new file mode 100644 index 00000000..a403104a --- /dev/null +++ b/tailwind.config.js @@ -0,0 +1,3 @@ +module.exports = { + content: ['./src/**/*.tsx'], +}; diff --git a/tailwind.css b/tailwind.css new file mode 100644 index 00000000..b5c61c95 --- /dev/null +++ b/tailwind.css @@ -0,0 +1,3 @@ +@tailwind base; +@tailwind components; +@tailwind utilities;