aboutsummaryrefslogtreecommitdiff
path: root/svelte.config.js
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-01-12 08:09:00 -0800
committerFuwn <[email protected]>2024-01-12 08:09:00 -0800
commit81f2cf27af91519e0e0356c3ed6527d2240f30e1 (patch)
tree1aa5b6afe952e401c1fc49a6ee44722e84fd72e3 /svelte.config.js
parentfix: restrict breaks for layouts (diff)
downloaddue.moe-81f2cf27af91519e0e0356c3ed6527d2240f30e1.tar.xz
due.moe-81f2cf27af91519e0e0356c3ed6527d2240f30e1.zip
feat(css): autoprefixer
Diffstat (limited to 'svelte.config.js')
-rw-r--r--svelte.config.js11
1 files changed, 10 insertions, 1 deletions
diff --git a/svelte.config.js b/svelte.config.js
index c378da70..111d5a6b 100644
--- a/svelte.config.js
+++ b/svelte.config.js
@@ -1,9 +1,18 @@
import adapter from '@sveltejs/adapter-vercel';
import { vitePreprocess } from '@sveltejs/kit/vite';
+import autoprefixer from 'autoprefixer';
+import sveltePreprocess from 'svelte-preprocess';
/** @type {import('@sveltejs/kit').Config} */
const config = {
- preprocess: vitePreprocess(),
+ preprocess: [
+ vitePreprocess(),
+ sveltePreprocess({
+ postcss: {
+ plugins: [autoprefixer()]
+ }
+ })
+ ],
kit: {
adapter: adapter(),
alias: {