koel/vite.config.js

40 lines
893 B
JavaScript
Raw Normal View History

2022-05-02 07:21:14 +00:00
/// <reference types="vitest" />
2022-06-10 10:47:46 +00:00
import { defineConfig } from 'vite'
2022-05-02 07:21:14 +00:00
import vue from '@vitejs/plugin-vue'
2022-06-10 10:47:46 +00:00
import laravel from 'laravel-vite-plugin'
2022-05-02 07:21:14 +00:00
import path from 'path'
export default defineConfig({
2022-06-10 10:47:46 +00:00
plugins: [
vue(),
laravel({
input: [
'resources/assets/js/app.ts',
'resources/assets/js/remote/app.ts'
],
refresh: true
})
],
2022-05-02 07:21:14 +00:00
resolve: {
alias: {
'@': path.resolve(__dirname, './resources/assets/js'),
2022-07-04 15:57:08 +00:00
'#': path.resolve(__dirname, './resources/assets/sass'),
'@modules': path.resolve(__dirname, './node_modules')
2022-05-02 07:21:14 +00:00
}
},
css: {
preprocessorOptions: {
scss: {
2022-07-04 15:57:08 +00:00
additionalData: `@import "#/partials/_mixins.scss";`
2022-05-02 07:21:14 +00:00
}
}
},
define: {
KOEL_ENV: '""'
},
test: {
2022-05-14 14:45:48 +00:00
environment: 'jsdom',
setupFiles: path.resolve(__dirname, './resources/assets/js/__tests__/setup.ts')
2022-06-10 10:47:46 +00:00
}
2022-05-02 07:21:14 +00:00
})