@mozc/vite-plugin-pug-indent-fix
v2.0.0
Published
Fix Vue3 Pug Indent Issue
Downloads
2
Readme
vite-plugin-vue-pug-indent-fix
This plugin is resolve the Unexpected token "indent" error in Vue 3.
- 修改自vite-plugin-vue-pug-indent-fix
- 兼容SFC中
<template lang="pug">
声明放在非开头位置的问题
How to use this plugin
Vite
vite.config.js
import vue from '@vitejs/plugin-vue'
import vitePluginPugIndentFix from "vite-plugin-pug-indent-fix"
export default defineConfig({
plugins: [vitePluginPugIndentFix(), vue()],
})
Nuxt
nuxt.config.js
import vitePluginPugIndentFix from "vite-plugin-pug-indent-fix"
export default defineNuxtConfig({
vite: {
plugins: [vitePluginPugIndentFix()]
}
})