feat: switch to vite-plugin-pages and update deps
This commit is contained in:
1 parent
559a7751a1
commit
0902d9a625
8 files changed
+94
-59
No files matched your search
+4
-3
@@ -1,7 +1,7 @@
|
||||
import path from 'path'
|
||||
import { UserConfig } from 'vite'
|
||||
import Vue from '@vitejs/plugin-vue'
|
||||
import Voie from 'vite-plugin-voie'
|
||||
import Pages from 'vite-plugin-pages'
|
||||
import ViteIcons, { ViteIconsResolver } from 'vite-plugin-icons'
|
||||
import ViteComponents from 'vite-plugin-components'
|
||||
import Markdown from 'vite-plugin-md'
|
||||
@@ -18,8 +18,8 @@ const config: UserConfig = {
|
||||
ssr: !!process.env.SSG,
|
||||
}),
|
||||
|
||||
// https://github.com/vamplate/vite-plugin-voie
|
||||
Voie({
|
||||
// https://github.com/hannoeru/vite-plugin-pages
|
||||
Pages({
|
||||
// load index page sync and bundled with the landing page to improve first loading time.
|
||||
// feel free to remove if you don't need it
|
||||
importMode(path: string) {
|
||||
@@ -32,6 +32,7 @@ const config: UserConfig = {
|
||||
Markdown({
|
||||
// for https://github.com/tailwindlabs/tailwindcss-typography
|
||||
wrapperClasses: 'prose prose-sm m-auto',
|
||||
headEnabled: true,
|
||||
markdownItSetup(md) {
|
||||
// https://prismjs.com/
|
||||
md.use(Prism)
|
||||
|
||||
Reference in new issue
Block a user