Closed fanatII1 closed 10 months ago
here are the logs:
[13:30:49.894] Cloning github.com/fanatII1/testing-blog (Branch: main, Commit: 84ebe88)
[13:30:50.155] Cloning completed: 260.745ms
[13:30:51.236] Restored build cache
[13:30:51.301] Running "vercel build"
[13:30:51.737] Vercel CLI 32.4.1
[13:30:52.354] Installing dependencies...
[13:30:53.112]
[13:30:53.112] up to date in 429ms
[13:30:53.113]
[13:30:53.113] 9 packages are looking for funding
[13:30:53.113] run `npm fund` for details
[13:30:53.122] Detected `package-lock.json` generated by npm 7+
[13:30:53.122] Running "npm run build"
[13:30:53.552]
[13:30:53.553] > fanatii-tech-blog@0.0.0 build
[13:30:53.553] > vite build
[13:30:53.553]
[13:30:53.906] [36mvite v4.5.0 [32mbuilding for production...[36m[39m
[13:30:53.986] transforming...
[13:30:56.511] [32m✓[39m 35 modules transformed.
[13:30:56.833] rendering chunks...
[13:30:56.842] computing gzip size...
[13:30:56.861] [2mdist/[22m[32mindex.html [39m[1m[2m 0.42 kB[22m[1m[22m[2m │ gzip: 0.28 kB[22m
[13:30:56.861] [2mdist/[22m[2massets/[22m[35mindex-55c5a7eb.css [39m[1m[2m 8.35 kB[22m[1m[22m[2m │ gzip: 1.97 kB[22m
[13:30:56.861] [2mdist/[22m[2massets/[22m[36mindex-47f846bd.js [39m[1m[33m513.13 kB[39m[22m[2m │ gzip: 124.44 kB[22m
[13:30:56.861] [33m
[13:30:56.861] (!) Some chunks are larger than 500 kBs after minification. Consider:
[13:30:56.862] - Using dynamic import() to code-split the application
[13:30:56.862] - Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks
[13:30:56.862] - Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.[39m
[13:30:56.862] [32m✓ built in 2.95s[39m
[13:30:56.953] Build Completed in /vercel/output [5s]
[13:30:57.050] Deploying outputs...
[13:30:58.021] Deployment completed
[13:30:59.561] Uploading build cache [7.50 MB]...
[13:31:00.558] Build cache uploaded: 996.931ms```
The reproduction looks identical between dev and after build on my machine. dev build + preview
Hello @fanatII1. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with need reproduction
will be closed if they have no activity within 3 days.
Describe the bug
I have a Vue 3 app bundle by Vite. I have a simple Homepage with styles for the homepage defined in the Home.vue,and global styles defined in the main.css file which is in (src/assets/main.css):
The problem i am facing is, the homepage that i have styled in development looks very different in production(the styling is different)
Here's how the site looks in development: dev image
and here's how it looks in producition: prod image
the repo can be found here: repo link
As you can see the development has the correct styles(perfect grid and elements are not overflowing): I don't know where the problem lies but heres my code.
Used Package Manager
npm
Logs
No response
Validations