Run the plugin before svelte
This commit is contained in:
parent
ec73af5618
commit
e75f41f7f1
1 changed files with 1 additions and 0 deletions
|
@ -9,6 +9,7 @@ export const themePlugin = (): Plugin => {
|
|||
console.log(`Using theme file: ${themeFile}`);
|
||||
return {
|
||||
name: 'theme-generator',
|
||||
enforce: 'pre', // Ensure this plugin runs first
|
||||
transform(code, id) {
|
||||
if (id.endsWith('app.css')) {
|
||||
const colorsCode = Deno.readTextFileSync(Deno.cwd() + '/src/themes/colors.css');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue