demo/vite.config.js
import path from 'path';
import { defineConfig } from 'vite';
import { createVuePlugin } from 'vite-plugin-vue2';
export default defineConfig({
plugins: [createVuePlugin()],
resolve: {
alias: [
{
find: '~',
replacement: path.resolve(__dirname, 'src'),
},
],
},
server: { port: 8080 },
});