Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

astro-compressor

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

astro-compressor

A gzip and brotli compressor for Astro

  • 0.1.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
11K
increased by4.49%
Maintainers
1
Weekly downloads
 
Created
Source

astro-compressor

GitHub Actions Status NPM

A gzip and brotli compressor for Astro

  • Simple: Set it and forget it
  • Optimal: By compressing ahead of time, a more performant compression can be performed
Table of Contents

Table of Contents

NOTE

Important: It is vital that this is the last integration in the integrations property. Otherwise some files might not get compressed.

Quickstart

Install via your tool of choice:

# Using NPM
npm run astro add astro-compressor
# Using Yarn
yarn astro add astro-compressor
# Using PNPM
pnpm astro add astro-compressor

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 astro-compressor, then configure it in your astro.config.* file in the integrations property:

import { defineConfig } from "astro/config";
import compressor from "astro-compressor";

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

License

MIT.

Keywords

FAQs

Package last updated on 27 Dec 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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc