Migmac
Migmac
CDCloudflare Developers
Created by Migmac on 4/24/2024 in #pages-help
I have different builds when building my vite-react app using cloudflare pages
by renaming my output css file in vite.config.ts
rollupOptions: {
output: {
assetFileNames: (assetInfo) => {
if (assetInfo.name === 'index.css') return 'index.min.css'
return assetInfo.name;
},
},
},
rollupOptions: {
output: {
assetFileNames: (assetInfo) => {
if (assetInfo.name === 'index.css') return 'index.min.css'
return assetInfo.name;
},
},
},
The problem is now solved. because apparently .min gets ignored by the Cloudflare Auto Minify system.
8 replies
CDCloudflare Developers
Created by Migmac on 4/24/2024 in #pages-help
I have different builds when building my vite-react app using cloudflare pages
That was the issue
8 replies
CDCloudflare Developers
Created by Migmac on 4/24/2024 in #pages-help
I have different builds when building my vite-react app using cloudflare pages
yep
8 replies
CDCloudflare Developers
Created by Migmac on 4/24/2024 in #pages-help
I have different builds when building my vite-react app using cloudflare pages
Cloudflare Auto Minify seems to be the issue here
8 replies