43 lines
1000 B
JavaScript
Executable File
43 lines
1000 B
JavaScript
Executable File
import { defineConfig } from 'vite';
|
||
import laravel from 'laravel-vite-plugin';
|
||
import tailwindcss from '@tailwindcss/vite';
|
||
|
||
export default defineConfig({
|
||
plugins: [
|
||
laravel({
|
||
input: [
|
||
'resources/css/app.css',
|
||
'resources/js/app.js',
|
||
'resources/sites/vfn/css/app.css',
|
||
],
|
||
refresh: true,
|
||
}),
|
||
tailwindcss(),
|
||
],
|
||
server: {
|
||
https: false, // 关掉!
|
||
host: '127.0.0.1',
|
||
port: 5173,
|
||
strictPort: true,
|
||
hmr: {
|
||
protocol: 'ws', // 走普通的 ws,别 wss 了
|
||
host: '127.0.0.1',
|
||
},
|
||
},
|
||
resolve: {
|
||
alias: {
|
||
'@fonts': '/resources/fonts',
|
||
},
|
||
},
|
||
// build: {
|
||
// rollupOptions: {
|
||
// external: ['jquery'],
|
||
// output: {
|
||
// globals: {
|
||
// jquery: '$',
|
||
// },
|
||
// },
|
||
// },
|
||
// },tru
|
||
});
|