Skip to content

Commit c0120d0

Browse files
committed
Enhance build output checks in deployment workflow; improve logging for index.html and JavaScript files
1 parent 23f7a8f commit c0120d0

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

.github/workflows/deploy.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,16 @@ jobs:
3333
- name: Check build output
3434
working-directory: src/frontend
3535
run: |
36-
echo "Build completed. Checking dist folder..."
36+
echo "=== Build Output Check ==="
3737
ls -la dist/
38-
echo "Checking index.html content..."
39-
head -30 dist/index.html
40-
echo "Checking JavaScript files..."
41-
find dist -name "*.js" -type f | head -5
42-
echo "Checking CSS files..."
43-
find dist -name "*.css" -type f | head -5
38+
echo "=== Index.html Head ==="
39+
head -40 dist/index.html
40+
echo "=== Index.html Tail ==="
41+
tail -10 dist/index.html
42+
echo "=== JavaScript Files ==="
43+
find dist -name "*.js" -type f -exec basename {} \; | head -10
44+
echo "=== Checking main JS content ==="
45+
find dist -name "index-*.js" -type f -exec head -3 {} \;
4446
4547
- name: Deploy to FTP (Frontend)
4648
uses: SamKirkland/FTP-Deploy-Action@v4.3.5

src/frontend/vite.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export default defineConfig(({ mode }) => {
7777
minify: "terser",
7878
terserOptions: {
7979
compress: {
80-
drop_console: true,
80+
drop_console: false, // Console mesajlarını koru!
8181
drop_debugger: true,
8282
},
8383
},

0 commit comments

Comments
 (0)