Browse Source

🔧 chore(config): 更新项目配置和忽略文件

- 在.gitignore中添加certs目录忽略
- 启用webpack持久化缓存配置
- 更新小程序项目配置中的appid
- 优化小程序编译设置(关闭urlCheck,开启es6和minified)
- 简化app.config.ts中的页面配置,移除登录和注册页面
D8D Developer 4 months ago
parent
commit
6811cd2bd0
4 changed files with 8 additions and 9 deletions
  1. 2 1
      .gitignore
  2. 1 1
      mini/config/index.ts
  3. 4 4
      mini/project.config.json
  4. 1 3
      mini/src/app.config.ts

+ 2 - 1
.gitignore

@@ -38,4 +38,5 @@ lerna-debug.log*
 .DS_Store
 
 .pnpm-store
-old
+old
+certs

+ 1 - 1
mini/config/index.ts

@@ -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: {

+ 4 - 4
mini/project.config.json

@@ -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 - 3
mini/src/app.config.ts

@@ -1,8 +1,6 @@
 export default defineAppConfig({
   pages: [
-    'pages/index/index',
-    'pages/login/index',
-    'pages/register/index'
+    'pages/index/index'
   ],
   window: {
     backgroundTextStyle: 'light',