-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathnuxt.config.ts
More file actions
128 lines (121 loc) · 3.18 KB
/
nuxt.config.ts
File metadata and controls
128 lines (121 loc) · 3.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
export default defineNuxtConfig({
extends: ['shadcn-docs-nuxt'],
modules: [
'@nuxt/eslint',
'motion-v/nuxt',
'nuxt-llms',
],
components: [
{
path: '~/components',
pathPrefix: false,
},
],
devtools: { enabled: true },
site: {
url: 'https://crxjs.dev/',
title: 'CRXJS',
description: 'Build cross-browser extensions with native HMR and zero-config setup',
},
mdc: {
highlight: {
langs: ['svelte', 'tsx'],
},
},
routeRules: {
'/vite-plugin': { redirect: '/' },
'/:locale/vite-plugin': { redirect: '/' },
},
compatibilityDate: '2025-06-21',
eslint: {
config: {
standalone: false,
nuxt: {
sortConfigKeys: true,
},
},
},
i18n: {
defaultLocale: 'en',
locales: [
{
code: 'en',
name: 'English',
language: 'en-US',
},
{
code: 'zh',
name: 'ç®€ä½“ä¸æ–‡',
language: 'zh-CN',
},
],
},
llms: {
domain: 'https://crxjs.dev/',
title: 'CRXJS Documentation',
description: 'Build cross-browser extensions with native HMR and zero-config setup.',
full: {
title: 'CRXJS Documentation',
description: 'Build cross-browser extensions with native HMR and zero-config setup.',
},
sections: [
{
title: 'Getting Started',
description: 'Learn how to set up and use CRXJS',
links: [
{
title: 'Introduction',
href: '/guide/introduction',
description: 'Overview of CRXJS features and capabilities',
},
{
title: 'Quick Start with create-crxjs',
href: '/guide/installation/create-crxjs',
description: 'Create a new project using the official starter template',
},
{
title: 'Manual Setup',
href: '/guide/installation/from-scratch',
description: 'Step-by-step guide for manual installation',
},
{
title: 'Loading Extensions',
href: '/guide/installation/loading',
description: 'How to load and test your extension in Chrome',
},
{
title: 'Building for Production',
href: '/guide/installation/packaging',
description: 'Prepare your extension for distribution',
},
],
},
{
title: 'Core Concepts',
description: 'Key concepts for CRXJS development',
links: [
{
title: 'Manifest Configuration',
href: '/concepts/manifest',
description: 'Understanding the manifest.json file structure',
},
{
title: 'Background Scripts',
href: '/concepts/background',
description: 'Working with extension background processes',
},
{
title: 'Content Scripts',
href: '/concepts/content',
description: 'Injecting scripts into web pages',
},
{
title: 'Extension Pages',
href: '/concepts/pages',
description: 'Creating popup and options pages',
},
],
},
],
},
})