1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

fix: set css preload to false (#4524)

After dependabot upgraded us to the new version of Vite, we started
having failures on the preloading of CSS modules on certain lazy loaded
modules. After investigation, it seems like Vite was adding another
stylesheet into the head element when the lazy loaded modules were
requested. These stylesheets had the wrong relative path when the assets
were loaded from our CDN. We are not sure why this fails, but for now we
are turning off cssPreloading.

The impact is small, because we have few lazy loaded modules that
preload the CSS.
This commit is contained in:
Fredrik Strand Oseberg 2023-08-17 15:04:41 +02:00 committed by GitHub
parent ac369d4b94
commit e1ee2f6c71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,6 +32,7 @@ export default mergeConfig(
outDir: 'build',
assetsDir: 'static',
modulePreload: false,
cssCodeSplit: false,
},
server: {
open: true,