You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If inlineSSRStyles in nuxt.config is enabled, the order of files in the 'css' block is not guaranteed. This is only the case if you are in production mode.
In my case I am using normalize.css via npm and a file named main.css. css: ['normalize.css', '~/assets/css/main.css']
The following config will result in loading my styles first, normalize.css afterwars twice. Once as inline style and once as external style.
Additional context
The last version where this was not an issue was 3.5.3
Logs
No response
The text was updated successfully, but these errors were encountered:
Environment
Reproduction
https://stackblitz.com/edit/nuxt-starter-huboxi?file=package.json,nuxt.config.ts,assets%2Fcss%2Fmain.css
Describe the bug
If inlineSSRStyles in nuxt.config is enabled, the order of files in the 'css' block is not guaranteed. This is only the case if you are in production mode.
In my case I am using normalize.css via npm and a file named main.css.
css: ['normalize.css', '~/assets/css/main.css']
The following config will result in loading my styles first, normalize.css afterwars twice. Once as inline style and once as external style.
Additional context
The last version where this was not an issue was 3.5.3
Logs
No response
The text was updated successfully, but these errors were encountered: