fix: move replace & copy plugin
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
+11
-13
@@ -36,7 +36,18 @@ export default defineConfig({
|
|||||||
globals: {
|
globals: {
|
||||||
vue: 'Vue',
|
vue: 'Vue',
|
||||||
},
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
|
vue(),
|
||||||
|
vueTypes(),
|
||||||
|
svgLoader(),
|
||||||
|
// https://github.com/antfu/unplugin-auto-import
|
||||||
|
AutoImport({
|
||||||
|
imports: ['vue', '@vueuse/core'],
|
||||||
|
dts: 'src/auto-imports.d.ts',
|
||||||
|
}),
|
||||||
replace({
|
replace({
|
||||||
__VUE_FLOW_VERSION__: JSON.stringify(pkg.version),
|
__VUE_FLOW_VERSION__: JSON.stringify(pkg.version),
|
||||||
preventAssignment: true,
|
preventAssignment: true,
|
||||||
@@ -50,19 +61,6 @@ export default defineConfig({
|
|||||||
],
|
],
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
plugins: [
|
|
||||||
vue(),
|
|
||||||
vueTypes(),
|
|
||||||
svgLoader(),
|
|
||||||
// https://github.com/antfu/unplugin-auto-import
|
|
||||||
AutoImport({
|
|
||||||
imports: ['vue', '@vueuse/core'],
|
|
||||||
dts: 'src/auto-imports.d.ts',
|
|
||||||
}),
|
|
||||||
],
|
|
||||||
optimizeDeps: {
|
optimizeDeps: {
|
||||||
include: ['vue', '@vueuse/core', '@braks/revue-draggable', 'd3-zoom', 'd3-selection'],
|
include: ['vue', '@vueuse/core', '@braks/revue-draggable', 'd3-zoom', 'd3-selection'],
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user