chore(docs): add copy vue flow plugin again
This commit is contained in:
@@ -9,6 +9,7 @@ import Components from 'unplugin-vue-components/vite'
|
|||||||
import AutoImport from 'unplugin-auto-import/vite'
|
import AutoImport from 'unplugin-auto-import/vite'
|
||||||
import { useVueFlow } from '@vue-flow/core'
|
import { useVueFlow } from '@vue-flow/core'
|
||||||
import head from './head'
|
import head from './head'
|
||||||
|
import { copyVueFlowPlugin } from './copy-plugin'
|
||||||
|
|
||||||
const { vueFlowVersion } = useVueFlow()
|
const { vueFlowVersion } = useVueFlow()
|
||||||
|
|
||||||
@@ -49,6 +50,7 @@ export default defineConfigWithTheme<DefaultTheme.Config>({
|
|||||||
exclude: ['@animxyz/vue3'],
|
exclude: ['@animxyz/vue3'],
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
|
copyVueFlowPlugin(),
|
||||||
AutoImport({
|
AutoImport({
|
||||||
imports: ['vue', '@vueuse/core'],
|
imports: ['vue', '@vueuse/core'],
|
||||||
dts: resolve(__dirname, '../auto-imports.d.ts'),
|
dts: resolve(__dirname, '../auto-imports.d.ts'),
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ export function copyVueFlowPlugin(): Plugin {
|
|||||||
{ path: '../../node_modules/@vue-flow/core/dist/', pkgName: 'vue-flow-core.es.js' },
|
{ path: '../../node_modules/@vue-flow/core/dist/', pkgName: 'vue-flow-core.es.js' },
|
||||||
{
|
{
|
||||||
path: '../../node_modules/@vue-flow/additional-components/dist/',
|
path: '../../node_modules/@vue-flow/additional-components/dist/',
|
||||||
pkgName: 'vue-flow-core-additional-components.es.js',
|
pkgName: 'vue-flow-additional-components.es.js',
|
||||||
},
|
},
|
||||||
].forEach(({ path, pkgName }) => {
|
].forEach(({ path, pkgName }) => {
|
||||||
const filePath = resolve(__dirname, `${path}/${pkgName}`)
|
const filePath = resolve(__dirname, `${path}/${pkgName}`)
|
||||||
|
|||||||
Reference in New Issue
Block a user