-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.ts.timestamp-1679575310638.mjs
87 lines (84 loc) · 11.5 KB
/
vite.config.ts.timestamp-1679575310638.mjs
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
// vite.config.ts
import { defineConfig } from "file:///mnt/e/nosync/roem/blog/node_modules/.pnpm/[email protected]_@[email protected]/node_modules/vite/dist/node/index.js";
import UnoCSS from "file:///mnt/e/nosync/roem/blog/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/unocss/dist/vite.mjs";
import { presetTagify, presetIcons, extractorSvelte } from "file:///mnt/e/nosync/roem/blog/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/unocss/dist/index.mjs";
import { imagetools } from "file:///mnt/e/nosync/roem/blog/node_modules/.pnpm/[email protected]/node_modules/vite-imagetools/dist/index.mjs";
import { sveltekit as SvelteKit } from "file:///mnt/e/nosync/roem/blog/node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@sveltejs/kit/src/exports/vite/index.js";
import { SvelteKitPWA } from "file:///mnt/e/nosync/roem/blog/node_modules/.pnpm/@[email protected]_fbgpavtdfil24d5yjrgzfsrgdu/node_modules/@vite-pwa/sveltekit/dist/index.mjs";
import TailwindCSS from "file:///mnt/e/nosync/roem/blog/node_modules/.pnpm/[email protected][email protected]/node_modules/tailwindcss/lib/index.js";
// src/lib/config/general.ts
var theme = [
{
name: "dracula",
text: "\u{1F7E6} Default"
},
{
name: "night",
text: "\u26AB Dark"
},
{
name: "winter",
text: "\u26AA Light"
}
];
// tailwind.config.ts
import typography from "file:///mnt/e/nosync/roem/blog/node_modules/.pnpm/@[email protected][email protected]/node_modules/@tailwindcss/typography/src/index.js";
import daisyui from "file:///mnt/e/nosync/roem/blog/node_modules/.pnpm/[email protected]_j7yt3jd32cwenjqavrrga47yr4/node_modules/daisyui/src/index.js";
var tailwind_config_default = {
content: ["./src/**/*.{html,md,js,svelte,ts}"],
theme: { extend: {} },
plugins: [typography, daisyui],
daisyui: { themes: theme.map(({ name }) => name) }
};
// vite.config.ts
import autoprefixer from "file:///mnt/e/nosync/roem/blog/node_modules/.pnpm/[email protected][email protected]/node_modules/autoprefixer/lib/autoprefixer.js";
import cssnano from "file:///mnt/e/nosync/roem/blog/node_modules/.pnpm/[email protected][email protected]/node_modules/cssnano/src/index.js";
var vite_config_default = defineConfig({
envPrefix: "URARA_",
build: {
sourcemap: false,
rollupOptions: {
cache: false
}
},
css: {
postcss: {
plugins: [
TailwindCSS(tailwind_config_default),
autoprefixer(),
...process.env.NODE_ENV === "production" ? [
cssnano({
preset: ["default", { discardComments: { removeAll: true } }]
})
] : []
]
}
},
plugins: [
UnoCSS({
include: [/\.svelte$/, /\.md?$/, /\.ts$/],
extractors: [extractorSvelte],
presets: [
presetTagify({
extraProperties: (matched) => matched.startsWith("i-") ? { display: "inline-block" } : {}
}),
presetIcons({ scale: 1.5 })
]
}),
imagetools(),
SvelteKit(),
SvelteKitPWA({
registerType: "autoUpdate",
manifest: false,
scope: "/",
workbox: {
globPatterns: ["posts.json", "**/*.{js,css,html,svg,ico,png,webp,avif}"],
globIgnores: ["**/sw*", "**/workbox-*"]
}
})
]
});
export {
vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiLCAic3JjL2xpYi9jb25maWcvZ2VuZXJhbC50cyIsICJ0YWlsd2luZC5jb25maWcudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCIvbW50L2Uvbm9zeW5jL3JvZW0vYmxvZ1wiO2NvbnN0I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nRlcicsXG4gICAgdGV4dDogJ1x1MjZBQSBMaWdodCdcbiAgfVxuXVxuXG5leHBvcnQgY29uc3QgaGVhZDogSGVhZENvbmZpZyA9IHt9XG5cbmV4cG9ydCBjb25zdCBoZWFkZXI6IEhlYWRlckNvbmZpZyA9IHtcbiAgc2VhcmNoOiB7XG4gICAgcHJvdmlkZXI6ICdnb29nbGUnXG4gIH0sXG4gIG5hdjogW1xuICAgIHtcbiAgICAgIHRleHQ6ICdIaWdobGlnaHRzJyxcbiAgICAgIGxpbms6ICcvaGlnaGxpZ2h0cydcbiAgICB9LFxuICAgIHtcbiAgICAgIHRleHQ6ICdCbG9nJyxcbiAgICAgIGxpbms6ICcvYmxvZydcbiAgICB9LFxuICAgIHtcbiAgICAgIHRleHQ6ICdNb2RlbGxpbmcgJiBBbmFseWlzJyxcbiAgICAgIGxpbms6ICcvbW9kZWxsaW5nJ1xuICAgIH0sXG4gICAge1xuICAgICAgdGV4dDogJ0V4cGxvcmFibGVzJyxcbiAgICAgIGxpbms6ICcvZXhwbG9yYWJsZXMnXG4gICAgfSxcbiAgICB7XG4gICAgICB0ZXh0OiAnQWJvdXQnLFxuICAgICAgY2hpbGRyZW46IFtcbiAgICAgICAge1xuICAgICAgICAgIHRleHQ6ICdQcm9qZWN0JyxcbiAgICAgICAgICBsaW5rOiAnL2Fib3V0L3Byb2plY3QnXG4gICAgICAgIH0sXG4gICAgICAgIHtcbiAgICAgICAgICB0ZXh0OiAnVGVhbScsXG4gICAgICAgICAgbGluazogJy9hYm91dC90ZWFtJ1xuICAgICAgICB9LFxuICAgICAgICB7XG4gICAgICAgICAgdGV4dDogJ1ByaXplcycsXG4gICAgICAgICAgbGluazogJy9hYm91dC9wcml6ZXMnXG4gICAgICAgIH0sXG4gICAgICAgIHtcbiAgICAgICAgICB0ZXh0OiAnRGF0YScsXG4gICAgICAgICAgbGluazogJy9hYm91dC9kYXRhJ1xuICAgICAgICB9LFxuICAgICAgICB7XG4gICAgICAgICAgdGV4dD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