WorkshopTasker/nuxt.config.ts

40 lines
778 B
TypeScript
Raw Normal View History

2023-05-11 06:03:22 +02:00
import { defineNuxtConfig } from "nuxt/config";
import vuetify, { transformAssetUrls } from 'vite-plugin-vuetify';
2023-05-11 06:03:22 +02:00
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
pages: true,
build: {
transpile: ["vuetify"],
},
modules: [
(_options, nuxt) => {
nuxt.hooks.hook('vite:extendConfig', (config) => {
config.plugins?.push(vuetify({ autoImport: true }));
});
},
],
2023-05-11 06:03:22 +02:00
css: [
"vuetify/lib/styles/main.sass",
"@mdi/font/css/materialdesignicons.min.css",
],
ssr: true,
nitro: {
esbuild: {
options: {
target: "es2022",
},
},
},
vite: {
vue: {
template: {
transformAssetUrls,
},
},
2023-05-11 06:03:22 +02:00
},
imports: {
autoImport: false,
},
});