Thank you for such amazing work, beyond words and I hope I can contribute with you soon!
I've been tinkering with the implementation, but I'm facing what I believe might be something silly, but it's definitely defeating me 😭
I'm using Vite and have followed your steps to implement icons, without any other alterations, but when I import an icon I see this Missing "./dist/svg/HomeMinor.svg" export in "@shopify/polaris-icons" package
<template>
<AppProvider>
<Frame>
<template #navigation>
<Navigation location="/">
<NavigationSection
:items="navItems"
:rollup="{ after: 2, view: 'view', hide: 'hide', activePath: '/' }"
/>
</Navigation>
</template>
<slot/>
</Frame>
</AppProvider>
</template>
<script setup>
import HomeMinor from '@shopify/polaris-icons/dist/svg/HomeMinor.svg';
import OrdersMinor from '@shopify/polaris-icons/dist/svg/OrdersMinor.svg';
import ProductsMinor from '@shopify/polaris-icons/dist/svg/ProductsMinor.svg';
import MarketingMinor from '@shopify/polaris-icons/dist/svg/MarketingMinor.svg';
const navItems = [
{ url: '#', label: 'Home', icon: HomeMinor },
{ url: '#', label: 'Orders', icon: OrdersMinor },
{ url: '#', label: 'Products', icon: ProductsMinor, selected: true,
subNavigationItems: [
{ url: '#', new: true, label: 'New item' },
{ url: '#', label: 'Active Item', selected: true},
{ url: '#', disabled: true, label: 'New item' },
],
},
{ url: '#', label: 'Marketing', icon: MarketingMinor, badge: { content: 'Warn', status: 'warning' }},
];
</script>
import { defineConfig } from "vite";
import laravel from "laravel-vite-plugin";
import vue from "@vitejs/plugin-vue";
import svgLoader from 'vite-svg-loader';
export default defineConfig({
server: {
https: false,
host: "0.0.0.0",
hmr: {
host: "0.0.0.0",
},
},
resolve: {
dedupe: ['vue'],
alias: {
'@js': '/resources/js',
},
},
plugins: [
laravel({
refresh: true,
input: "resources/js/app.js",
}),
vue({
template: {
transformAssetUrls: {
base: null,
includeAbsolute: false,
},
},
}),
svgLoader()
],
});
I've only followed the very basic steps so far but haven't been able to figure out what's really happening