Files
hms/apps/miniprogram/config/prod.ts
iven 29543ef0e7 refactor(mp): Phase 0 工程基础 — TS strict + ESLint + Prettier + 安全加固
- tsconfig: noImplicitAny:true + jsx:react-jsx + target:ES2018 + skipLibCheck
- 新增 eslint.config.mjs (flat config v9, no-explicit-any:error)
- 新增 .prettierrc + lint/format/typecheck 脚本
- prod: pure_funcs 添加 console.warn 防泄漏
- config: 生产环境强制清空 DEV_USER/DEV_PASS
- .env.production: 清空硬编码 tenant_id
- @types/node + @noble/ciphers 依赖
2026-05-22 00:13:17 +08:00

24 lines
524 B
TypeScript

import type { UserConfigExport } from '@tarojs/cli';
export default {
logger: { quiet: true },
mini: {
miniCssExtractPluginOption: { ignoreOrder: true },
terserOption: {
compress: {
drop_console: true,
drop_debugger: true,
pure_funcs: ['console.log', 'console.info', 'console.debug', 'console.warn'],
},
format: {
comments: false,
},
},
},
h5: {
miniCssExtractPluginOption: {
ignoreOrder: true,
},
},
} satisfies UserConfigExport;