42 lines
1.2 KiB
TypeScript
42 lines
1.2 KiB
TypeScript
// https://nuxt.com/docs/api/configuration/nuxt-config
|
|
|
|
export default defineNuxtConfig({
|
|
css: ["./my-bulma-project.css", "./app/assets/styles/main.scss"],
|
|
future: {
|
|
compatibilityVersion: 4,
|
|
},
|
|
app: {
|
|
head: {
|
|
script: [{ src: "/js/html2pdf.bundle.min.js" }, { src: "/js/html2canvas.min.js" }],
|
|
},
|
|
},
|
|
modules: ["@pinia/nuxt", "pinia-plugin-persistedstate/nuxt", "@nuxt/image", "nuxt-qrcode", "@nuxt/icon"],
|
|
compatibilityDate: "2026-06-01",
|
|
devtools: { enabled: true },
|
|
vite: {
|
|
optimizeDeps: {
|
|
include: [
|
|
'@vue-email/render',
|
|
'@vue/devtools-core',
|
|
'@vue/devtools-kit',
|
|
'@vueup/vue-quill',
|
|
'axios',
|
|
'dayjs', // CJS
|
|
'dayjs/locale/vi', // CJS
|
|
'dayjs/plugin/isSameOrAfter', // CJS
|
|
'dayjs/plugin/isSameOrBefore', // CJS
|
|
'dayjs/plugin/localizedFormat', // CJS
|
|
'dayjs/plugin/relativeTime', // CJS
|
|
'dayjs/plugin/weekOfYear', // CJS
|
|
'dayjs/plugin/weekday', // CJS
|
|
'es-toolkit',
|
|
'highcharts', // CJS
|
|
'highcharts-vue', // CJS
|
|
'highcharts/modules/export-data', // CJS
|
|
'highcharts/modules/exporting', // CJS
|
|
'xlsx',
|
|
]
|
|
}
|
|
}
|
|
});
|