Skip to content

Commit

Permalink
updated to 1.7.1, updated to nuxt 3.12.2, compatibilityDate added.
Browse files Browse the repository at this point in the history
  • Loading branch information
renegadevi committed Sep 15, 2024
1 parent 7d32f66 commit 4035265
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
18 changes: 14 additions & 4 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ import ar from "./locales/ar-AR.json";

export default defineNuxtConfig({
devtools: { enabled: true },

nitro: {
compressPublicAssets: true,
logLevel: 4,
},

modules: [
"@nuxt/eslint",
"@pinia/nuxt",
Expand All @@ -22,12 +24,14 @@ export default defineNuxtConfig({
"@nuxtjs/i18n",
"@dargmuesli/nuxt-cookie-control",
],

tailwindcss: {
cssPath: "~/assets/css/tailwind.css",
configPath: "tailwind.config.ts",
exposeConfig: false,
viewer: true,
},

postcss: {
plugins: {
"postcss-import": {},
Expand All @@ -39,23 +43,24 @@ export default defineNuxtConfig({
imports: {
dirs: ["./stores", "./locales"],
},
pinia: {
autoImports: ["defineStore", "acceptHMRUpdate"],
},

app: {
head: {
charset: "utf-8",
viewport: "width=device-width, initial-scale=1",
},
},

colorMode: {
classSuffix: "",
},

image: {
provider: "ipx",
quality: 80,
format: ["png", "jpeg", "webp"],
},

googleFonts: {
families: {
Inter: true,
Expand All @@ -64,6 +69,7 @@ export default defineNuxtConfig({
prefetch: true,
preconnect: true,
},

i18n: {
vueI18n: "./i18n.config.ts",
detectBrowserLanguage: {
Expand All @@ -73,9 +79,11 @@ export default defineNuxtConfig({
redirectOn: "root", // recommended
},
},

eslint: {
lintOnStart: false,
},

cookieControl: {
cookieExpiryOffsetMs: 1000 * 60 * 60 * 24 * 365, // one year
// set all these to true for highest GDPR enforcement
Expand Down Expand Up @@ -109,4 +117,6 @@ export default defineNuxtConfig({
},
locales: ["en", "fr", "ar"],
},
});

compatibilityDate: "2024-09-15",
});
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "nuxt-boilerplate",
"private": true,
"version": "1.7.0",
"version": "1.7.1",
"type": "module",
"scripts": {
"build": "nuxt build",
Expand All @@ -20,11 +20,11 @@
"@babel/eslint-parser": "^7.24.7",
"@dargmuesli/nuxt-cookie-control": "^8.4.2",
"@nuxt/devtools": "^1.3.7",
"@nuxt/eslint": "^0.3.13",
"@nuxt/eslint-config": "^0.3.13",
"@nuxt/image": "1.7.0",
"@nuxtjs/color-mode": "^3.4.2",
"@nuxtjs/device": "^3.1.1",
"@nuxt/eslint": "^0.3.13",
"@nuxt/eslint-config": "^0.3.13",
"@nuxtjs/google-fonts": "^3.2.0",
"@nuxtjs/i18n": "8.3.1",
"@nuxtjs/tailwindcss": "^6.12.0",
Expand All @@ -35,7 +35,7 @@
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-nuxt": "^4.0.0",
"eslint-plugin-prettier": "^5.1.3",
"nuxt": "^3.12.2",
"nuxt": "^3.13.1",
"nuxt-icon": "^0.6.10",
"postcss-import": "^16.1.0",
"prettier": "^3.3.2",
Expand Down

0 comments on commit 4035265

Please sign in to comment.