nuxt.config.ts 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. import fs from 'fs';
  2. export default defineNuxtConfig({
  3. app: {
  4. head: {
  5. title: 'Ossatura',
  6. meta: [
  7. { charset: 'utf-8' },
  8. { name: 'viewport', content: 'width=device-width, initial-scale=1' },
  9. { hid: 'description', name: 'description', content: '' },
  10. { name: 'msapplication-TileColor', content: '#324250' },
  11. { name: 'msapplication-TileImage', content: '/favicon/mstile-144x144.png' }
  12. ],
  13. link: [
  14. { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
  15. ]
  16. }
  17. },
  18. css: [
  19. 'vuetify/lib/styles/main.sass'
  20. ],
  21. modules: [
  22. [
  23. '@pinia/nuxt',
  24. {
  25. autoImports: [
  26. // automatically imports `usePinia()`
  27. 'defineStore',
  28. // automatically imports `usePinia()` as `usePiniaStore()`
  29. ['defineStore', 'definePiniaStore']
  30. ]
  31. }
  32. ],
  33. '@pinia-orm/nuxt',
  34. 'nuxt-lodash',
  35. ],
  36. typescript: {
  37. strict: true
  38. },
  39. build: {
  40. transpile: ['vuetify']
  41. },
  42. vite: {
  43. define: {
  44. 'process.env.DEBUG': process.env.DEBUG
  45. },
  46. //@ts-ignore
  47. server : {
  48. //@ts-ignore
  49. port: 443,
  50. hmr: {
  51. protocol: 'wss'
  52. }
  53. }
  54. }
  55. })