tangled
alpha
login
or
join now
davidwindham.com
/
npmx.dev
forked from
npmx.dev/npmx.dev
0
fork
atom
[READ-ONLY] a fast, modern browser for the npm registry
0
fork
atom
overview
issues
pulls
pipelines
perf: do not include nuxt-og-image templates
Daniel Roe
1 month ago
e1c4c150
b96774a0
+18
1 changed file
expand all
collapse all
unified
split
modules
og-image.ts
+18
modules/og-image.ts
···
1
1
+
import { defineNuxtModule, useNuxt } from 'nuxt/kit'
2
2
+
3
3
+
export default defineNuxtModule({
4
4
+
meta: {
5
5
+
name: 'og-image-tweaks',
6
6
+
},
7
7
+
setup() {
8
8
+
const nuxt = useNuxt()
9
9
+
10
10
+
nuxt.hook('components:extend', components => {
11
11
+
for (const component of [...components].toReversed()) {
12
12
+
if (component.filePath.includes('og-image')) {
13
13
+
components.splice(components.indexOf(component), 1)
14
14
+
}
15
15
+
}
16
16
+
})
17
17
+
},
18
18
+
})