ith5 3 недель назад
Родитель
Сommit
fec1aea775
3 измененных файлов с 4 добавлено и 4 удалено
  1. 0 0
      core/payment/index.ts
  2. 3 3
      package.json
  3. 1 1
      vite.config.js

+ 0 - 0
core/payment/index.tsx → core/payment/index.ts


+ 3 - 3
package.json

@@ -1,7 +1,7 @@
 {
 	"scripts": {
-		"build": "vite build",
-		"dev": "vite build --watch"
+		"build": "vite build --mode production",
+		"dev": "vite build --watch --mode development"
 	},
 	"type": "module",
 	"dependencies": {
@@ -16,4 +16,4 @@
 		"miniprogram-api-typings": "^5.0.0",
 		"terser": "^5.46.0"
 	}
-}
+}

+ 1 - 1
vite.config.js

@@ -16,7 +16,7 @@ export default defineConfig(({ mode }) => {
       minify: 'terser',
       terserOptions: {
         compress: {
-          drop_console: false,
+          drop_console: mode === 'production',
         },
         format: {
           comments: false,