forked from PlexRipper/Docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
70 lines (69 loc) · 2.04 KB
/
nuxt.config.ts
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
import vuetify from 'vite-plugin-vuetify';
import { defineNuxtConfig } from 'nuxt/config';
import { fileURLToPath } from 'url';
// https://v3.nuxtjs.org/api/configuration/nuxt.config
export default defineNuxtConfig({
// Doc: https://v3.nuxtjs.org/api/configuration/nuxt.config#srcdir
srcDir: 'src/',
ssr: true,
target: "static",
content: {
documentDriven: true,
markdown: {
anchorLinks: false,
},
highlight: {
theme: 'github-dark',
preload: ['ts', 'js', 'css', 'json', 'bash'],
}
},
css: ['vuetify/styles', '@/assets/scss/style.scss'],
build: {
// extractCSS: true,
transpile: ['vuetify'],
},
vite: {
ssr: {
noExternal: ['vuetify'],
},
define: {
'process.env.DEBUG': false,
},
},
modules: [
'@nuxt/content',
'@pinia/nuxt',
'@nuxtjs/plausible',
async (options, nuxt) => {
// @ts-ignore
// Source: https://www.the-koi.com/projects/how-to-set-up-a-project-with-nuxt3-and-vuetify3-with-a-quick-overview/
nuxt.hooks.hook('vite:extendConfig', config => config.plugins.push(vuetify({ styles: 'sass' })));
},
],
plausible: {
autoOutboundTracking: true,
// domain: 'plexripper.rocks'
},
/*
** Auto-import components
* Doc: https://github.com/nuxt/components
*/
components: {
loader: true,
dirs: [
// Components directory
{
path: './components',
pathPrefix: false,
global: true,
extensions: ['vue'],
},
],
},
alias: {
img: fileURLToPath(new URL('./src/assets/img', import.meta.url)),
const: fileURLToPath(new URL('./src/common/constants', import.meta.url)),
store: fileURLToPath(new URL('./src/store', import.meta.url)),
components: fileURLToPath(new URL('./src/components', import.meta.url)),
},
});