[READ-ONLY] Mirror of https://github.com/danielroe/roe.dev. This is the code and content for my personal website, built in Nuxt.
roe.dev
1import { defineNuxtModule, useNuxt } from 'nuxt/kit'
2
3export default defineNuxtModule({
4 meta: {
5 name: 'reduce-chunks',
6 },
7 setup () {
8 const nuxt = useNuxt()
9 if (nuxt.options.dev) {
10 return
11 }
12 nuxt.hook('app:resolve', app => {
13 app.plugins = app.plugins.filter(p => !p.src.includes('/ws.mjs'))
14 })
15 },
16})