Merge remote-tracking branch 'origin/astra/overrides' into astra/overrides
This commit is contained in:
commit
8e7f5fc0ab
1 changed files with 1 additions and 0 deletions
|
@ -9,6 +9,7 @@ export const themePlugin = (): Plugin => {
|
||||||
console.log(`Using theme folder: ${themeFolder}`);
|
console.log(`Using theme folder: ${themeFolder}`);
|
||||||
return {
|
return {
|
||||||
name: 'theme-generator',
|
name: 'theme-generator',
|
||||||
|
enforce: 'pre', // Ensure this plugin runs first
|
||||||
transform(code, id) {
|
transform(code, id) {
|
||||||
if (id.endsWith('app.css')) {
|
if (id.endsWith('app.css')) {
|
||||||
const colorsCode = Deno.readTextFileSync(Deno.cwd() + '/themes/colors.css');
|
const colorsCode = Deno.readTextFileSync(Deno.cwd() + '/themes/colors.css');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue