Socket
Book a DemoInstallSign in
Socket

@sondr3/astro-html-minifier

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@sondr3/astro-html-minifier

A HTML minifier for Astro

0.0.1
unpublished
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

@sondr3/astro-html-minifier

GitHub Actions Status NPM

A HTML minifier for Astro

  • Simple: Set it and forget it
  • Performant: Uses highly performant libraries to minify
  • Optimal: By minifying, the server can serve optimal bundles
Table of Contents

Table of Contents

Quickstart

Install via your tool of choice:

# Using NPM
npm run astro add @sondr3/astro-html-minifier
# Using Yarn
yarn astro add @sondr3/astro-html-minifier
# Using PNPM
pnpm astro add @sondr3/astro-html-minifier

Then, restart the dev server by typing CTRL-C and then npm run dev in the terminal window that was running Astro.

Usage

First, install the package with your favorite package manager: pnpm add --dev @sondr3/astro-html-minifier, then configure it in your astro.config.* file in the integrations property:

import { defineConfig } from "astro/config";
import minifyHtml from "@sondr3/astro-html-minifier";

export default defineConfig({
  // ...
  integrations: [minifyHtml()],
});

License

MIT.

Keywords

astro

FAQs

Package last updated on 27 Aug 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.