forked from laravelsu/laravel.su
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.js
26 lines (25 loc) · 867 Bytes
/
vite.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';
import path from 'path';
import {prismjsPlugin} from "vite-plugin-prismjs";
import { resolve } from 'path';
export default defineConfig({
plugins: [
laravel({
input: ['resources/css/app.scss', 'resources/js/app.js'],
refresh: true,
}),
prismjsPlugin({
languages: ["html", "php", "php-extras", "javascript", "json", "sql", "shell", "bash","markup", "clike", "phpdoc", "yml", "nginx", "sass", "scss", "css", "ini", "markdown", "unescaped-markup"],
plugins: [],
//theme: "twilight",
css: false,
}),
],
resolve: {
alias: {
'~bootstrap': path.resolve(__dirname, 'nodes_modules/bootstrap'),
$image: resolve('./public/img'),
}
}
});