Skip to content

Commit

Permalink
perf: minify html
Browse files Browse the repository at this point in the history
  • Loading branch information
kwaa committed Dec 13, 2023
1 parent a33cd79 commit 2fb633b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion plugins/lts/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {
themeFromArgb,
themeFromHex,
} from './lib/theme_utils.ts'
import { log } from 'lume/core/utils/log.ts'
import { hexFromArgb } from 'npm:@material/material-color-utilities@0.2.7'

export interface Options {
Expand Down
5 changes: 3 additions & 2 deletions plugins/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import theme from './lts/theme.ts'
import metas from 'lume/plugins/metas.ts'
// import date from 'lume/plugins/date.ts'
import sitemap from 'lume/plugins/sitemap.ts'
// import minifyHTML from 'lume/plugins/minify_html.ts'
import minifyHTML from 'lume/plugins/minify_html.ts'
// import nav from 'lume/plugins/nav.ts'
// import pagefind from 'lume/plugins/pagefind.ts'
import unocss from 'lume/plugins/unocss.ts'
Expand All @@ -32,8 +32,9 @@ export default () => (site: Lume.Site) =>
reset: 'tailwind',
}))
.use(lightningcss())
// .use(minifyHTML({ extensions: ['.html', '.css', '.js'] }))
.use(minifyHTML({ extensions: ['.html', '.css', '.js'] }))
// .use(nav())
// .use(pagefind())
// .preprocess(['.md'], (pages) =>
// pages.forEach((page) => {
// page.data.excerpt ??= (page.data.content as string).split(
Expand Down

0 comments on commit 2fb633b

Please sign in to comment.