From 9dea4bcd61841b50796813f728850c4475e03e95 Mon Sep 17 00:00:00 2001 From: Braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Sun, 12 Dec 2021 00:49:14 +0100 Subject: [PATCH] fix: move replace & copy plugin Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com> --- vite.config.ts | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/vite.config.ts b/vite.config.ts index 23e3ef2f..b0b2f292 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -36,20 +36,6 @@ export default defineConfig({ globals: { vue: 'Vue', }, - plugins: [ - replace({ - __VUE_FLOW_VERSION__: JSON.stringify(pkg.version), - preventAssignment: true, - }), - copy({ - targets: [ - { - src: 'src/theme-default.css', - dest: 'dist', - }, - ], - }), - ], }, }, }, @@ -62,6 +48,18 @@ export default defineConfig({ imports: ['vue', '@vueuse/core'], dts: 'src/auto-imports.d.ts', }), + replace({ + __VUE_FLOW_VERSION__: JSON.stringify(pkg.version), + preventAssignment: true, + }), + copy({ + targets: [ + { + src: 'src/theme-default.css', + dest: 'dist', + }, + ], + }), ], optimizeDeps: { include: ['vue', '@vueuse/core', '@braks/revue-draggable', 'd3-zoom', 'd3-selection'],