Files
Froxlor/vite.config.js
envoyr 0f37dfb1eb remove mix; add vite
Signed-off-by: envoyr <hello@envoyr.com>
2023-10-16 12:48:35 +02:00

38 lines
727 B
JavaScript

import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';
import vue from '@vitejs/plugin-vue';
import { viteRequire } from 'vite-require'
export default defineConfig({
build: {
rollupOptions: {
external: ['extras/install'],
},
chunkSizeWarningLimit: 1000,
},
plugins: [
laravel({
input: [
'templates/Froxlor/assets/scss/app.scss',
'templates/Froxlor/assets/js/app.js',
],
hotFile: 'templates/Froxlor/hot',
buildDirectory: '../templates/Froxlor/build',
refresh: true,
}),
vue({
template: {
transformAssetUrls: {
base: null,
includeAbsolute: false,
},
},
}),
],
resolve: {
alias: {
vue: 'vue/dist/vue.esm-bundler.js',
},
},
});