extend vue config

This commit is contained in:
Kamila 2024-07-14 14:10:42 +02:00
parent 18cbd77291
commit e462a8228f

View File

@ -1,20 +1,33 @@
import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import commonjs from "vite-plugin-commonjs";
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import commonjs from 'vite-plugin-commonjs'
const path = require('path')
export default defineConfig({
base: '/admin/',
server: {
port: 8080
base: '/admin/',
server: {
port: 8080,
},
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
assets: path.join(__dirname, 'src/assets'),
},
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
assets: path.join(__dirname, 'src/assets'),
extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue'],
},
plugins: [
vue({
template: {
compilerOptions: {
compatConfig: {
MODE: 2,
},
},
extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue'],
},
plugins: [vue(), commonjs()],
},
}),
,
commonjs(),
],
})