podo-ui 0.1.37 → 0.1.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/vite-plugin.js +17 -1
package/package.json
CHANGED
package/vite-plugin.js
CHANGED
|
@@ -13,7 +13,7 @@ export function podoUiVitePlugin() {
|
|
|
13
13
|
return {
|
|
14
14
|
name: 'vite-plugin-podo-ui',
|
|
15
15
|
|
|
16
|
-
// Add
|
|
16
|
+
// Add configuration for SCSS imports and fonts
|
|
17
17
|
config(userConfig, { command }) {
|
|
18
18
|
return {
|
|
19
19
|
resolve: {
|
|
@@ -26,6 +26,22 @@ export function podoUiVitePlugin() {
|
|
|
26
26
|
};
|
|
27
27
|
},
|
|
28
28
|
|
|
29
|
+
// Resolve Sass @use statements
|
|
30
|
+
resolveId(source, importer, options) {
|
|
31
|
+
// Only intercept podo-ui imports
|
|
32
|
+
if (source === 'podo-ui/mixin' || source === 'podo-ui/mixin.scss') {
|
|
33
|
+
return join(__dirname, 'mixin.scss');
|
|
34
|
+
}
|
|
35
|
+
if (source === 'podo-ui/system' || source === 'podo-ui/system.scss') {
|
|
36
|
+
return join(__dirname, 'system.scss');
|
|
37
|
+
}
|
|
38
|
+
if (source === 'podo-ui/global.scss' || source === 'podo-ui/global') {
|
|
39
|
+
return join(__dirname, 'global.scss');
|
|
40
|
+
}
|
|
41
|
+
// Let Vite handle everything else
|
|
42
|
+
return null;
|
|
43
|
+
},
|
|
44
|
+
|
|
29
45
|
// Load hook to handle the font file
|
|
30
46
|
load(id) {
|
|
31
47
|
// Check if it's requesting the icon font
|