chore(docs): add copy vue flow plugin again

This commit is contained in:
braks
2022-10-10 21:18:55 +02:00
committed by Braks
parent fa0fc69304
commit c086aa8e46
2 changed files with 3 additions and 1 deletions

View File

@@ -9,6 +9,7 @@ import Components from 'unplugin-vue-components/vite'
import AutoImport from 'unplugin-auto-import/vite'
import { useVueFlow } from '@vue-flow/core'
import head from './head'
import { copyVueFlowPlugin } from './copy-plugin'
const { vueFlowVersion } = useVueFlow()
@@ -49,6 +50,7 @@ export default defineConfigWithTheme<DefaultTheme.Config>({
exclude: ['@animxyz/vue3'],
},
plugins: [
copyVueFlowPlugin(),
AutoImport({
imports: ['vue', '@vueuse/core'],
dts: resolve(__dirname, '../auto-imports.d.ts'),

View File

@@ -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/additional-components/dist/',
pkgName: 'vue-flow-core-additional-components.es.js',
pkgName: 'vue-flow-additional-components.es.js',
},
].forEach(({ path, pkgName }) => {
const filePath = resolve(__dirname, `${path}/${pkgName}`)