mirror of https://github.com/pixelfed/pixelfed
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
644 B
JavaScript
26 lines
644 B
JavaScript
import { fileURLToPath, URL } from 'node:url'
|
|
import path from 'path'
|
|
import { defineConfig } from 'vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
import vueJsx from '@vitejs/plugin-vue-jsx'
|
|
import laravel from 'laravel-vite-plugin'
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
publicDir: "public",
|
|
plugins: [
|
|
vue(),
|
|
vueJsx(),
|
|
laravel([
|
|
'resources/js/main.js',
|
|
]),
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
'@': fileURLToPath(new URL('./resources/js', import.meta.url)),
|
|
'~bootstrap': path.resolve(__dirname, 'node_modules/bootstrap'),
|
|
'~': path.resolve(__dirname, 'resources/js'),
|
|
}
|
|
}
|
|
})
|