mirror of
https://github.com/xHyroM/links.git
synced 2024-11-21 23:31:04 +01:00
build: install astro compress
This commit is contained in:
parent
e4e3f8b223
commit
444c42f67a
4 changed files with 1251 additions and 14 deletions
|
@ -4,10 +4,27 @@ import tailwind from "@astrojs/tailwind";
|
|||
import sitemap from "@astrojs/sitemap";
|
||||
import image from "@astrojs/image";
|
||||
import vercel from "@astrojs/vercel/static";
|
||||
import compress from "astro-compress";
|
||||
|
||||
// https://astro.build/config
|
||||
export default defineConfig({
|
||||
integrations: [tailwind(), sitemap(), image()],
|
||||
//site: SITE.origin,
|
||||
base: "/",
|
||||
trailingSlash: "never",
|
||||
output: "static",
|
||||
integrations: [
|
||||
tailwind(),
|
||||
sitemap(),
|
||||
image(),
|
||||
compress({
|
||||
css: true,
|
||||
html: true,
|
||||
img: false,
|
||||
js: true,
|
||||
svg: false,
|
||||
|
||||
logger: 1,
|
||||
}),
|
||||
],
|
||||
adapter: vercel(),
|
||||
});
|
||||
|
|
1232
package-lock.json
generated
1232
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -16,6 +16,7 @@
|
|||
"@astrojs/tailwind": "^2.1.3",
|
||||
"@astrojs/vercel": "^2.4.0",
|
||||
"astro": "^1.9.0",
|
||||
"astro-compress": "^1.1.24",
|
||||
"autoprefixer": "^10.4.13",
|
||||
"cssnano": "^5.1.14",
|
||||
"tailwindcss": "^3.2.4"
|
||||
|
|
|
@ -1,13 +0,0 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 36 36">
|
||||
<path fill="#000" d="M22.25 4h-8.5a1 1 0 0 0-.96.73l-5.54 19.4a.5.5 0 0 0 .62.62l5.05-1.44a2 2 0 0 0 1.38-1.4l3.22-11.66a.5.5 0 0 1 .96 0l3.22 11.67a2 2 0 0 0 1.38 1.39l5.05 1.44a.5.5 0 0 0 .62-.62l-5.54-19.4a1 1 0 0 0-.96-.73Z"/>
|
||||
<path fill="url(#gradient)" d="M18 28a7.63 7.63 0 0 1-5-2c-1.4 2.1-.35 4.35.6 5.55.14.17.41.07.47-.15.44-1.8 2.93-1.22 2.93.6 0 2.28.87 3.4 1.72 3.81.34.16.59-.2.49-.56-.31-1.05-.29-2.46 1.29-3.25 3-1.5 3.17-4.83 2.5-6-.67.67-2.6 2-5 2Z"/>
|
||||
<defs>
|
||||
<linearGradient id="gradient" x1="16" x2="16" y1="32" y2="24" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#000"/>
|
||||
<stop offset="1" stop-color="#000" stop-opacity="0"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<style>
|
||||
@media (prefers-color-scheme:dark){:root{filter:invert(100%)}}
|
||||
</style>
|
||||
</svg>
|
Before Width: | Height: | Size: 873 B |
Loading…
Reference in a new issue