fb348f3740
- 迁移前端源码 (src/) - 迁移后端服务 (server/) - 迁移配置文件 (package.json, tsconfig.json 等) - 更新需求概要文档 - 更新架构设计文档 - 更新接口定义文档 - 更新环境配置文档 - 创建测试目录结构和配置 项目技术栈: - Taro 4.1.9 (跨端框架) - React 18 - TypeScript - NestJS (后端) - Tailwind CSS 4 - shadcn/ui 组件库
35 lines
1.2 KiB
TypeScript
35 lines
1.2 KiB
TypeScript
import type { UserConfigExport } from '@tarojs/cli';
|
|
|
|
export default {
|
|
mini: {},
|
|
h5: {
|
|
legacy: false,
|
|
/**
|
|
* WebpackChain 插件配置
|
|
* @docs https://github.com/neutrinojs/webpack-chain
|
|
*/
|
|
// webpackChain (chain) {
|
|
// /**
|
|
// * 如果 h5 端编译后体积过大,可以使用 webpack-bundle-analyzer 插件对打包体积进行分析。
|
|
// * @docs https://github.com/webpack-contrib/webpack-bundle-analyzer
|
|
// */
|
|
// chain.plugin('analyzer')
|
|
// .use(require('webpack-bundle-analyzer').BundleAnalyzerPlugin, [])
|
|
// /**
|
|
// * 如果 h5 端首屏加载时间过长,可以使用 prerender-spa-plugin 插件预加载首页。
|
|
// * @docs https://github.com/chrisvfritz/prerender-spa-plugin
|
|
// */
|
|
// const path = require('path')
|
|
// const Prerender = require('prerender-spa-plugin')
|
|
// const staticDir = path.join(__dirname, '..', 'dist')
|
|
// chain
|
|
// .plugin('prerender')
|
|
// .use(new Prerender({
|
|
// staticDir,
|
|
// routes: [ '/pages/index/index' ],
|
|
// postProcess: (context) => ({ ...context, outputPath: path.join(staticDir, 'index.html') })
|
|
// }))
|
|
// }
|
|
},
|
|
} satisfies UserConfigExport<'vite'>;
|