iFran
Import file as raw string on a config file (UnoCSS config in this case)
I'm trying to import a css file as a string on a configuration file, in this case is for a feature of UnoCSS named "preflights" which lets you set up css for themes from strings, I'm using
import globalCSS from './app/styles/theme-base.css?raw'
within the config but I'm getting
Cannot restart nuxt: Unknown file extension ".css" for <full file path>
any idea on how to make the import work? I'm inlining the css instead of using the file as a workaround.
Nuxt 4 compat.
edit: fixed it by using normal fs from Node, looks like the module config doesnt go through vite4 replies