Skip to content

Commit bd92c20

Browse files
committed
Remove debug output on release
1 parent b3b6df5 commit bd92c20

4 files changed

Lines changed: 17 additions & 5 deletions

File tree

frontend/package-lock.json

Lines changed: 6 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
},
2424
"devDependencies": {
2525
"@vitejs/plugin-vue": "^6.0.4",
26+
"terser": "^5.46.0",
2627
"vite": "^7.3.1",
2728
"vite-plugin-pwa": "^1.2.0",
2829
"vite-plugin-static-copy": "^3.2.0",

frontend/src/composables/useSQLite.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ export function useSQLite() {
9393
stmt.free();
9494
results = result;
9595
*/
96+
console.log(sql, params)
9697
const result = db.exec(sql, params);
9798
results = result.length > 0
9899
? result[0].values

frontend/vite.config.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,5 +68,14 @@ export default defineConfig(({ mode }) => {
6868
},
6969
proxy: proxy,
7070
},
71+
build: {
72+
minify: 'terser',
73+
terserOptions: {
74+
compress: {
75+
drop_console: true,
76+
drop_debugger: true
77+
},
78+
}
79+
},
7180
}
7281
})

0 commit comments

Comments
 (0)