ci: optimize build

This commit is contained in:
KaiyiWing
2023-10-02 19:06:37 +08:00
parent b9c34a1782
commit fdcf7a36ae
2 changed files with 6 additions and 3 deletions

View File

@@ -392,8 +392,8 @@ const chinaExam: DictionaryResource[] = [
id: 'TOEFL_ZhangHongYan',
name: '张红岩的TOEFL词汇书',
description: '张红岩的TOEFL词汇书-词以类记',
category: '国考试',
tags: ['其他'],
category: '国考试',
tags: ['TOEFL'],
url: '/dicts/TOEFL_ZhangHongYan.json',
length: 4035,
language: 'en',

View File

@@ -31,7 +31,10 @@ export default defineConfig(async () => {
build: {
minify: true,
outDir: 'build',
sourcemap: true,
sourcemap: false,
},
esbuild: {
drop: ['console', 'debugger'],
},
define: {
REACT_APP_DEPLOY_ENV: JSON.stringify(process.env.REACT_APP_DEPLOY_ENV),