Skip to content

Commit

Permalink
add purgecss
Browse files Browse the repository at this point in the history
  • Loading branch information
nkCreation committed Sep 28, 2022
1 parent ee44367 commit dd6bd16
Show file tree
Hide file tree
Showing 3 changed files with 195 additions and 4 deletions.
8 changes: 4 additions & 4 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import vue from "@astrojs/vue";
import compress from "astro-compress";
import { defineConfig } from 'astro/config';

import sitemap from "@astrojs/sitemap";

import * as dotenv from 'dotenv';
dotenv.config()
import purgecss from "astro-purgecss";
dotenv.config();


// https://astro.build/config
export default defineConfig({
integrations: [vue(), compress(), sitemap()],
integrations: [vue(), compress(), sitemap(), purgecss()],
vite: {
ssr: {
external: ["svgo"]
Expand Down
190 changes: 190 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"astro": "^1.3.1",
"astro-compress": "^1.0.8",
"astro-icon": "^0.7.3",
"astro-purgecss": "^1.1.1",
"autoprefixer": "^10.4.12",
"cssnano": "^5.1.13",
"graphql": "^16.6.0",
Expand Down

0 comments on commit dd6bd16

Please sign in to comment.