forked from quoid/userscripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.js
25 lines (22 loc) · 847 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
import { defineConfig } from "vite";
import { svelte } from "@sveltejs/vite-plugin-svelte";
/**
* About `inline-svg`
* use `?raw` suffix import svg assets as inline
* @see {@link https://vitejs.dev/guide/assets.html#importing-asset-as-string}
* Ignore lint errors `{@html}`, since these are deterministic local svg resources,
* there is no risk of Cross-Site Scripting (XSS) attacks and can be safely disabled.
* @see {@link https://sveltejs.github.io/eslint-plugin-svelte/rules/no-at-html-tags/}
*/
/**
* About `autoprefixer`
* have config with `.postcssrc.json` file
* @see {@link https://vitejs.dev/guide/features.html#postcss}
* about `missing peer postcss` error, ignore it
*/
/** @see {@link https://vitejs.dev/config/} */
export default defineConfig({
publicDir: "public/ext/vendor/",
plugins: [svelte()],
base: "./",
});