robcresswell / nuxt-compress

A simple static asset compression module for Nuxt that runs Gzip and Brotli compression during the build process
https://www.npmjs.com/package/nuxt-compress
MIT License
102 stars 9 forks source link

Support for Nuxt3 ? #51

Open BananaAcid opened 2 years ago

BananaAcid commented 2 years ago

Will this project support Nuxt3? And is this going to be supported by the maintainers of this project?

BjornTheProgrammer commented 1 year ago

Doesn't seem to have all the features this package does, but now text compression is native to Nuxt 3. Try it out, it worked for me!

import { defineNuxtConfig } from 'nuxt'

export default defineNuxtConfig({
  nitro: {
    compressPublicAssets: true,
  },
})

https://stackoverflow.com/questions/72882000/how-do-i-make-my-nuxt-app-v3-serve-mjs-br-brotli-files-instead-of-the-regul

robcresswell commented 1 year ago

Ah, I see Nuxt 3 is finally stable. I'll take a look soon at what I need to do here