Start on Vue 3 changes
This commit is contained in:
parent
dcc4784bfd
commit
c913a40e18
35 changed files with 3570 additions and 1913 deletions
|
|
@ -1,5 +1,7 @@
|
|||
import { defineConfig } from "vite";
|
||||
import vue from "@vitejs/plugin-vue2";
|
||||
import vue from "@vitejs/plugin-vue";
|
||||
import vueJsx from "@vitejs/plugin-vue-jsx";
|
||||
import vitePluginVuetify from "vite-plugin-vuetify";
|
||||
import { fileURLToPath, URL } from "node:url";
|
||||
import Components from "unplugin-vue-components/vite";
|
||||
import { viteStaticCopy } from 'vite-plugin-static-copy';
|
||||
|
|
@ -11,8 +13,9 @@ function VuetifyResolver() {
|
|||
return {
|
||||
type: 'component',
|
||||
resolve: (name) => {
|
||||
console.log("rESOLVE", name);
|
||||
if (name.match(/^V[A-Z]/) && !name.includes("VEmojiPicker"))
|
||||
return { name, from: 'vuetify/lib' }
|
||||
return { name, from: './node_modules/vuetify/lib/components' }
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
@ -28,9 +31,11 @@ export default defineConfig(({mode}) => ({
|
|||
// exclude: ["*vuex-persist*", "*deepmerge*"]
|
||||
// }),
|
||||
vue(),
|
||||
Components({
|
||||
resolvers: [VuetifyResolver()],
|
||||
}),
|
||||
vueJsx(),
|
||||
vitePluginVuetify(),
|
||||
// Components({
|
||||
// resolvers: [VuetifyResolver()],
|
||||
// }),
|
||||
viteStaticCopy({
|
||||
targets: [
|
||||
{
|
||||
|
|
@ -54,7 +59,8 @@ export default defineConfig(({mode}) => ({
|
|||
alias: [
|
||||
{ find: "@", replacement: fileURLToPath(new URL("./src", import.meta.url)) },
|
||||
{ find: "~@", replacement: fileURLToPath(new URL("./src", import.meta.url)) },
|
||||
{ find: "~vuetify", replacement: fileURLToPath(new URL("./node_modules/vuetify", import.meta.url)) },
|
||||
{ find: "~vuetify/src", replacement: fileURLToPath(new URL("./node_modules/vuetify/lib", import.meta.url)) },
|
||||
{ find: "vue", replacement: fileURLToPath(new URL("./node_modules/vue/dist/vue.esm-bundler.js", import.meta.url)) },
|
||||
],
|
||||
},
|
||||
define: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue