chore: migrate to nuxt-bridge
This commit is contained in:
+9
-6
@@ -1,7 +1,11 @@
|
||||
import { defineNuxtConfig } from '@nuxt/bridge'
|
||||
import translations from './translations'
|
||||
import numberFormats from './translations/numberFormats'
|
||||
|
||||
export default {
|
||||
export default defineNuxtConfig({
|
||||
alias: {
|
||||
tslib: 'tslib/tslib.es6.js'
|
||||
},
|
||||
build: {
|
||||
extend(config) {
|
||||
config.module.rules.push({
|
||||
@@ -14,8 +18,8 @@ export default {
|
||||
presets({ isServer }) {
|
||||
return [
|
||||
[
|
||||
require.resolve('@nuxt/babel-preset-app'),
|
||||
// require.resolve('@nuxt/babel-preset-app-edge'), // For nuxt-edge users
|
||||
// require.resolve('@nuxt/babel-preset-app'),
|
||||
require.resolve('@nuxt/babel-preset-app-edge'), // For nuxt-edge users
|
||||
{
|
||||
buildTarget: isServer ? 'server' : 'client',
|
||||
corejs: { version: 3 }
|
||||
@@ -26,14 +30,12 @@ export default {
|
||||
}
|
||||
},
|
||||
buildModules: [
|
||||
'@nuxt/typescript-build',
|
||||
// https://go.nuxtjs.dev/eslint
|
||||
['@nuxtjs/eslint-module', { exclude: ['graphql/generated', 'node_modules'] }],
|
||||
// https://go.nuxtjs.dev/stylelint
|
||||
'@nuxtjs/stylelint-module',
|
||||
// https://go.nuxtjs.dev/vuetify
|
||||
'@nuxtjs/vuetify',
|
||||
'@nuxtjs/composition-api/module',
|
||||
'@vueuse/nuxt'
|
||||
],
|
||||
css: ['vuetify/dist/vuetify.css', '~/assets/scss/global.scss'],
|
||||
@@ -126,7 +128,8 @@ export default {
|
||||
config: {} // Additional config
|
||||
},
|
||||
ssr: false,
|
||||
target: 'static',
|
||||
vuetify: {
|
||||
optionsPath: './vuetify.options.js'
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user