Vitepress provides a vite.plugins configuration that can be used to load plugins, just like the code below:
import { defineConfig } from 'vitepress';
import i18n from 'vitepress-i18n';
// https://vitepress.dev/reference/site-config
export default defineConfig({
vite: {
plugins: [
i18n({
locales: ['en', 'ko', 'zhHans'],
}),
],
},
});
Are you considering changing to a vitepress plugin?
Related links:
Vitepress provides a
vite.pluginsconfiguration that can be used to load plugins, just like the code below:Are you considering changing to a vitepress plugin?
Related links: