generated from boboko/starter
vite
This commit is contained in:
+9
-9
@@ -1,30 +1,30 @@
|
|||||||
import { defineConfig } from 'vite';
|
import { defineConfig } from "vite";
|
||||||
import laravel from 'laravel-vite-plugin';
|
import laravel from "laravel-vite-plugin";
|
||||||
import tailwindcss from '@tailwindcss/vite';
|
import tailwindcss from "@tailwindcss/vite";
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
build: {
|
build: {
|
||||||
// Target browsers that support ES modules natively (Chrome 89+, Firefox 89+,
|
// Target browsers that support ES modules natively (Chrome 89+, Firefox 89+,
|
||||||
// Safari 15+, Edge 89+). Eliminates legacy polyfills flagged by PageSpeed.
|
// Safari 15+, Edge 89+). Eliminates legacy polyfills flagged by PageSpeed.
|
||||||
target: ['es2022', 'chrome89', 'firefox89', 'safari15', 'edge89'],
|
target: ["es2022", "chrome89", "firefox89", "safari15", "edge89"],
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
laravel({
|
laravel({
|
||||||
input: ['resources/css/app.css', 'resources/js/app.js'],
|
input: ["resources/css/app.css", "resources/js/app.js"],
|
||||||
refresh: true,
|
refresh: true,
|
||||||
}),
|
}),
|
||||||
tailwindcss(),
|
tailwindcss(),
|
||||||
],
|
],
|
||||||
server: {
|
server: {
|
||||||
host: '0.0.0.0',
|
host: "0.0.0.0",
|
||||||
port: 5173,
|
port: 5174,
|
||||||
strictPort: true,
|
strictPort: true,
|
||||||
cors: true,
|
cors: true,
|
||||||
hmr: {
|
hmr: {
|
||||||
host: 'localhost',
|
host: "localhost",
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
ignored: ['**/storage/framework/views/**'],
|
ignored: ["**/storage/framework/views/**"],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user