mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-07 08:07:18 +02:00
Fix macros/build.renderStylus() not loading CSS each build
This commit is contained in:
parent
0d3385790c
commit
09a2c86ad4
@ -1,14 +1,15 @@
|
|||||||
import stylus from 'stylus';
|
import stylus from 'stylus';
|
||||||
|
|
||||||
import cssStr from "@assets/css/styles.styl" with { type: "text" };
|
export const renderStylus = async () => {
|
||||||
|
const file = Bun.file('./src/assets/css/styles.styl');
|
||||||
|
const cssStr = await file.text();
|
||||||
|
|
||||||
const generatedCss = await (stylus(cssStr, {})
|
const generatedCss = await (stylus(cssStr, {})
|
||||||
.set('filename', 'styles.css')
|
.set('filename', 'styles.css')
|
||||||
.set('compress', true)
|
.set('compress', true)
|
||||||
.include('src/assets/css/'))
|
.include('src/assets/css/'))
|
||||||
.render();
|
.render();
|
||||||
|
|
||||||
export const renderStylus = () => {
|
|
||||||
return generatedCss;
|
return generatedCss;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user