fn_b/_env/vite.config.js
2026-02-12 13:50:17 +08:00

45 lines
1.1 KiB
JavaScript
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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',
'resource/cfn/css/app.css',
'resource/cvf/css/app.css',
'resource/vcf/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
});