Skip to content

Commit

Permalink
fix: show full list of icons in docs, migrate to modern css compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
cadgerfeast committed Dec 7, 2024
1 parent fd64834 commit 04a0df8
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 1 deletion.
7 changes: 7 additions & 0 deletions packages/@slithe/playground/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,13 @@ export default defineConfig({
}
},
vite: {
css: {
preprocessorOptions: {
scss: {
api: 'modern-compiler'
}
}
},
define: {
SLITHE_PLAYGROUND_FAVICON: `"${favicon}"`
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<script setup>
import { ref, onMounted, onUnmounted } from 'vue';
import { getTheme } from 'slithe';
import Preview from '../../components/preview.vue';
// State
const icons = ref([]);
const icons = ref(getTheme().theme.icons);
// Handlers
function handleThemeChange ({ detail: { theme } }) {
icons.value = theme.icons;
Expand Down
7 changes: 7 additions & 0 deletions packages/@slithe/primer/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ function copySync (src, dest) {

export default defineConfig({
publicDir: false,
css: {
preprocessorOptions: {
scss: {
api: 'modern-compiler'
}
}
},
build: {
lib: {
entry: path.resolve(__dirname, './src/index.ts'),
Expand Down
7 changes: 7 additions & 0 deletions packages/@slithe/vue/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ import dts from 'vite-plugin-dts';

export default defineConfig({
publicDir: false,
css: {
preprocessorOptions: {
scss: {
api: 'modern-compiler'
}
}
},
build: {
lib: {
entry: path.resolve(__dirname, './src/index.ts'),
Expand Down

0 comments on commit 04a0df8

Please sign in to comment.