Willi
Willi
There are multiple workarounds you can do. I did this: ./windi.mjs ```js import glob from 'glob' import fs from 'fs' const cssfile = glob.sync('./dist/assets/main.*.css')[0].replace('./dist', '') const htmlfiles = glob.sync('./dist/**/index.html') htmlfiles.map(file...
> Hey @woldtwerk, thanks for your input, can you share a repo setup with last astro ? because it doesn't work, the style are updated only when I restart the...
try it like that: https://github.com/woldtwerk/astro-windicss/blob/master/src/layouts/BaseLayout.astro Either use a separate file for windi e.g. windicss.ts and replace the windicss.js in dist files with css file (like in the link) Or import...
Happy it works for you. I didn't use Unocss yet. As far as I understand it also spits out a css file you can manually insert. So, Yes I think...
@alexanderniebuhr Oddly enough it works correctly in plain js files. Shouldn't it work out of the box in ts files if it works in js?
If I do it like this it works: ``` "windicss.includedLanguages": { "typescript": "javascript", } ``` gonna try adding a pattern so it works for classmap aswell.
You could do a workaround. It's situational and doesn't cover everything, but it might suit your usecase. In your components you simple call useStyles(). This uses the fact that the...
additional settings like seed would be great
I'm also having trouble with avif. I installed it with brew and avif is not working anymore. I just get a small white square. The log says request completed successfully....
I have the same issue. ```js assetFileNames: (assetInfo: any) => { const base = dirname(assetInfo.name) return `${base}/[name].[hash].[ext]` }, ``` I used this to have /app/css/style.css in /app/dist/css/style.css This no longer...