Skip to content

Commit cd80b4e

Browse files
fix(frontend): clean up build warnings (#12508)
1 parent df5d3d7 commit cd80b4e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

frontend/.env.production

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
NODE_ENV = "production"
21
VITE_API_URL = '/api/v2'
32
VITE_REPORT = true
43
VITE_BUILD_GZIP = false

frontend/src/views/setting/alert/dash/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ onMounted(() => {
324324
flex-wrap: wrap;
325325
gap: 10px;
326326
flex: 1 1 auto;
327-
justify-content: start;
327+
justify-content: flex-start;
328328
}
329329
330330
.search-fields {

frontend/vite.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ const __APP_INFO__ = {
5454
export default defineConfig(({ mode }: ConfigEnv): UserConfig => {
5555
const env = loadEnv(mode, process.cwd());
5656
const viteEnv = wrapperEnv(env);
57+
const isProduction = mode === 'production';
5758

5859
return {
5960
resolve: {
@@ -127,7 +128,7 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => {
127128
],
128129
esbuild: {
129130
pure: viteEnv.VITE_DROP_CONSOLE ? ['console.log'] : [],
130-
drop: viteEnv.VITE_DROP_CONSOLE && process.env.NODE_ENV === 'production' ? ['debugger'] : [],
131+
drop: viteEnv.VITE_DROP_CONSOLE && isProduction ? ['debugger'] : [],
131132
},
132133
build: {
133134
sourcemap: false,

0 commit comments

Comments
 (0)