Skip to content

Commit

Permalink
✨ merge unocss once in layers #115
Browse files Browse the repository at this point in the history
  • Loading branch information
trydofor committed Dec 17, 2024
1 parent 2b4f138 commit bf71b9d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .changeset/few-balloons-drum.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@fessional/razor-mobile": patch
"@fessional/razor-common": patch
---

✨ merge unocss once in layers #115
8 changes: 5 additions & 3 deletions layers/mobile/uno.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { defineConfig } from 'unocss';
import { fileURLToPath } from 'url';
import { mergeConfigs } from '@unocss/core';
import config from './.nuxt/uno.config.mjs';

export default defineConfig({
export default mergeConfigs([fileURLToPath(import.meta.url).startsWith(process.cwd()) ? config : {}, {
rules: [
['ion-var-fit', {
'--width': 'fix-context',
Expand All @@ -17,4 +19,4 @@ export default defineConfig({
'ion-fit-card': 'ion-var-fit ion-var-card',
},
],
});
}]);

0 comments on commit bf71b9d

Please sign in to comment.