- 在.gitignore中添加certs目录忽略 - 启用webpack持久化缓存配置 - 更新小程序项目配置中的appid - 优化小程序编译设置(关闭urlCheck,开启es6和minified) - 简化app.config.ts中的页面配置,移除登录和注册页面
@@ -38,4 +38,5 @@ lerna-debug.log*
.DS_Store
.pnpm-store
-old
+old
+certs
@@ -32,7 +32,7 @@ export default defineConfig<'webpack5'>(async (merge, { command, mode }) => {
framework: 'react',
compiler: 'webpack5',
cache: {
- enable: false // Webpack 持久化缓存配置,建议开启。默认配置请参考:https://docs.taro.zone/docs/config-detail#cache
+ enable: true // Webpack 持久化缓存配置,建议开启。默认配置请参考:https://docs.taro.zone/docs/config-detail#cache
},
mini: {
postcss: {
@@ -2,14 +2,14 @@
"miniprogramRoot": "./dist",
"projectname": "mini",
"description": "",
- "appid": "touristappid",
+ "appid": "wx6765e6b2fe06378c",
"setting": {
- "urlCheck": true,
- "es6": false,
+ "urlCheck": false,
+ "es6": true,
"enhance": false,
"compileHotReLoad": false,
"postcss": false,
- "minified": false
+ "minified": true
"compileType": "miniprogram"
}
@@ -1,8 +1,6 @@
export default defineAppConfig({
pages: [
- 'pages/index/index',
- 'pages/login/index',
- 'pages/register/index'
+ 'pages/index/index'
],
window: {
backgroundTextStyle: 'light',