docs(mp): 新增小程序全页面 HTML 原型 + UI 优化指南
- 新增 12 个核心页面原型(登录/首页/咨询/预约/商城/健康等) - 新增医生端分包原型(核心 + 临床两个分包) - 新增 AI 客服对话页原型 - 新增 MP UI 优化指南文档 - 更新 wiki 基础设施和小程序文档
This commit is contained in:
@@ -20,5 +20,23 @@ export default {
|
||||
});
|
||||
},
|
||||
},
|
||||
h5: {},
|
||||
h5: {
|
||||
devServer: {
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: 'http://localhost:3000',
|
||||
changeOrigin: true,
|
||||
},
|
||||
},
|
||||
client: {
|
||||
overlay: {
|
||||
errors: true,
|
||||
warnings: false,
|
||||
},
|
||||
},
|
||||
},
|
||||
webpackChain(chain) {
|
||||
chain.resolve.alias.set('react-dom$', require.resolve('react-dom'));
|
||||
},
|
||||
},
|
||||
} satisfies UserConfigExport;
|
||||
|
||||
@@ -8,7 +8,7 @@ export default defineConfig(async (merge) => {
|
||||
designWidth: 375,
|
||||
deviceRatio: { 640: 2.34 / 2, 750: 1, 375: 2, 828: 1.81 / 2 },
|
||||
sourceRoot: 'src',
|
||||
outputRoot: 'dist',
|
||||
outputRoot: process.env.TARO_ENV === 'h5' ? 'dist-h5' : 'dist',
|
||||
plugins: [],
|
||||
defineConstants: {
|
||||
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV || 'development'),
|
||||
|
||||
@@ -18,7 +18,6 @@ export default {
|
||||
h5: {
|
||||
miniCssExtractPluginOption: {
|
||||
ignoreOrder: true,
|
||||
cssLoaderOption: { importLoaders: 1, esModule: false },
|
||||
},
|
||||
},
|
||||
} satisfies UserConfigExport;
|
||||
|
||||
Reference in New Issue
Block a user