Skip to content

Commit b1cf768

Browse files
author
Pascal Klesse
committed
fix: Fix tailwind error, build error and add dayjs and seo modules
1 parent 75f93f7 commit b1cf768

File tree

5 files changed

+732
-85
lines changed

5 files changed

+732
-85
lines changed

nuxt-base-template/nuxt.config.ts

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,23 @@ export default defineNuxtConfig({
4444
'@vueuse/nuxt',
4545
'@nuxtjs/google-fonts',
4646
'@nuxtjs/color-mode',
47+
'dayjs-nuxt',
4748
'@nuxt/image',
48-
'@nuxtjs/robots',
49-
'@nuxtjs/sitemap',
5049
'@nuxtjs/plausible',
50+
'@nuxtjs/seo',
5151
],
5252

53+
// sets the default renderer to chromium
54+
ogImage: {
55+
defaults: {
56+
renderer: 'chromium',
57+
},
58+
},
59+
60+
robots: {
61+
disallow: ['/app', '/auth', '/admin'],
62+
},
63+
5364
nuxtBase: {
5465
disableGraphql: false,
5566
generateTypes: process.env['GENERATE_TYPES'] === '1',
@@ -72,7 +83,12 @@ export default defineNuxtConfig({
7283
},
7384

7485
sitemap: {
75-
exclude: ['/app/**'],
86+
exclude: ['/app/**', '/auth/**'],
87+
},
88+
89+
site: {
90+
name: 'Nuxt Base Starter',
91+
url: process.env.SITE_URL,
7692
},
7793

7894
spaLoadingTemplate: false,
@@ -94,6 +110,9 @@ export default defineNuxtConfig({
94110
telemetry: false,
95111

96112
vite: {
113+
build: {
114+
cssMinify: 'lightningcss',
115+
},
97116
plugins: [tailwindcss()],
98117
},
99118
});

nuxt-base-template/package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@
2727
"app:e2e": "playwright test",
2828
"test": "echo 'No test specified' && exit 0",
2929
"lint": "eslint 'src/**/*.{ts,js,vue}'",
30-
"lint:fix": "eslint 'src/**/*.{ts,js,vue}' --fix",
31-
"postbuild": "node postbuild.js"
30+
"lint:fix": "eslint 'src/**/*.{ts,js,vue}' --fix"
3231
},
3332
"dependencies": {
3433
"@egoist/tailwindcss-icons": "1.9.0",
@@ -52,15 +51,15 @@
5251
"@nuxtjs/color-mode": "3.5.2",
5352
"@nuxtjs/google-fonts": "3.2.0",
5453
"@nuxtjs/plausible": "1.2.0",
55-
"@nuxtjs/robots": "5.2.2",
56-
"@nuxtjs/sitemap": "7.2.5",
54+
"@nuxtjs/seo": "2.2.0",
5755
"@nuxtjs/tailwindcss": "6.13.1",
5856
"@playwright/test": "1.50.1",
5957
"@tailwindcss/forms": "0.5.10",
6058
"@tailwindcss/vite": "4.0.6",
6159
"@tailwindcss/typography": "0.5.16",
6260
"@types/node": "22.13.4",
6361
"@vitejs/plugin-vue": "5.2.1",
62+
"dayjs-nuxt": "2.1.11",
6463
"@vue/test-utils": "2.4.6",
6564
"eslint": "9.20.1",
6665
"jsdom": "26.0.0",

0 commit comments

Comments
 (0)