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(),
|
2024-03-23 08:42:03 +00:00
|
|
|
laravel({
|
2022-06-10 10:47:46 +00:00
|
|
|
input: [
|
|
|
|
'resources/assets/js/app.ts',
|
|
|
|
'resources/assets/js/remote/app.ts'
|
|
|
|
],
|
|
|
|
refresh: true
|
2024-03-19 22:48:12 +00:00
|
|
|
}),
|
2022-06-10 10:47:46 +00:00
|
|
|
],
|
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-15 07:23:55 +00:00
|
|
|
additionalData: '@import "#/partials/_mixins.scss";'
|
2022-05-02 07:21:14 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
test: {
|
2022-05-14 14:45:48 +00:00
|
|
|
environment: 'jsdom',
|
2022-05-12 13:21:14 +00:00
|
|
|
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
|
|
|
})
|