@populatus/vite-plugin-import-sfc
v1.0.2
Published
A vite plugin that allows you to automatically import sfc
Downloads
1
Readme
vite-plugin-import-sfc
Vite plugin that allows you to automatically import sfc component
Install
npm i -D vite-plugin-import-sfc
Add plugin to your vite.config.ts
:
// vite.config.ts
import ImportSFC from '@populatus/vite-plugin-import-sfc'
export default {
plugins: [
ImportSFC({
path: '',
name: '',
include: [],
exclude: [],
}),
],
}
The sfc automatically insert to your vue modules.