@nuxt-modules/compression
Assets Compression module for Nuxt 3
Features
📖 Read the documentation
Setup
yarn add @nuxt-modules/compression
npm i @nuxt-modules/compression
Basic usage
Firstly, you need to add @nuxt-modules/compression
to your Nuxt config.
{
buildModules: [
['@nuxt-modules/compression']
]
}
And that's it! Now, the gzip compression will compress your static assets. For more configuration options (like brotli compression, filter assets, etc) please, visit the official docs.
Development
- Clone this repository
- Install dependencies using
yarn install
or npm install
- Start development server using
yarn dev
or npm run dev
License
MIT License