Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stuck on vue-demi issue https://github.com/vueuse/vue-demi/issues/171 #31

Draft
wants to merge 10 commits into
base: dev
Choose a base branch
from
2 changes: 1 addition & 1 deletion .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
"presets": [
"@vue/cli-plugin-babel/preset"
]
}
}
54 changes: 43 additions & 11 deletions nuxt.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
export default {
import { defineNuxtConfig } from 'nuxt/config'

export default defineNuxtConfig({
devServer: {},
vite: {},
target: 'static',
ssr: false,

head: {
titleTemplate: 'PrecisionTox Metadata Manager',
title: 'PrecisionTox Metadata Manager',
Expand All @@ -16,24 +21,51 @@ export default {
{ name: 'twitter:card', content: 'summary_large_image' }
]
},

css: ["@/assets/styles/layout.css", "animate.css/animate.min.css", "@/assets/styles/colors.css"],
plugins: ["@/plugins/particles"],
components: true,
buildModules: ['@nuxtjs/eslint-module', '@nuxtjs/vuetify'],
modules: ['@nuxtjs/axios', '@nuxtjs/pwa', ['nuxt-highcharts', {}]],

buildModules: [
'@nuxtjs/eslint-module',
'@nuxtjs/vuetify',
['@pinia/nuxt', { disable_vuex: true }]
],

modules: [['nuxt-highcharts', {}]],
axios: { baseURL: '/', headers: { common: { Accept: 'application/json' }}},
pwa: { manifest: { lang: 'en' }},
vuetify: { defaultAssets: { icons: 'fa' }},

// Added for nuxt 4 compliance
pinia: {
storesDirs: ['./src/stores/**']
},

static: { prefix: false },
srcDir: 'src/',
router: { middleware: 'auth' },

build: {
extend(config) {
config.module.rules.push({
test: /\.ya?ml$/,
type: 'json',
use: 'yaml-loader'
})
}
}
}
const rules = [
{
test: /\.mjs$/,
include: [/node_modules/, /.nuxt/],
type: "javascript/auto"
},
]
config.module.rules.push(...rules)
},
babel: {
plugins: [
['@babel/plugin-proposal-private-methods', { loose: true }],
'@babel/plugin-transform-optional-chaining',
'@babel/plugin-transform-nullish-coalescing-operator'
]
},
transpile: ["tsparticles", "tsparticles-engine", "globby"]
},

compatibilityDate: '2024-11-06'
})
Loading