mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-08-06 13:18:27 +02:00
Convert CSS to Stylus
This commit is contained in:
13
src/macros/build.ts
Normal file
13
src/macros/build.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import stylus from 'stylus';
|
||||
|
||||
// @ts-ignore
|
||||
import cssStr from "../assets/css/styles.styl" with { type: "text" };
|
||||
|
||||
const generatedCss = await (stylus(cssStr, {})
|
||||
.set('filename', 'styles.css')
|
||||
.include('src/assets/css/'))
|
||||
.render();
|
||||
|
||||
export const renderStylus = () => {
|
||||
return generatedCss;
|
||||
};
|
Reference in New Issue
Block a user