nuxt.config.js 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. import fs from 'fs';
  2. export default {
  3. app: {
  4. head: {
  5. title: 'App',
  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. '@nuxtjs/i18n',
  36. ],
  37. typescript: {
  38. strict: true
  39. },
  40. //@ts-ignore
  41. i18n: {
  42. langDir: 'lang',
  43. lazy: true,
  44. locales: [
  45. {
  46. code: 'en',
  47. iso: 'en-US',
  48. file: 'en.json',
  49. name: 'English'
  50. },
  51. {
  52. code: 'fr',
  53. iso: 'fr-FR',
  54. file: 'fr.json',
  55. name: 'Français'
  56. }
  57. ],
  58. defaultLocale: 'fr',
  59. fallbackLocale: 'en',
  60. detectBrowserLanguage: false,
  61. vueI18n: {
  62. legacy: false,
  63. }
  64. },
  65. build: {
  66. transpile: ['vuetify'],
  67. },
  68. vite: {
  69. define: {
  70. 'process.env.DEBUG': process.env.DEBUG,
  71. },
  72. //@ts-ignore
  73. server : {
  74. //@ts-ignore
  75. port: 443,
  76. hmr: {
  77. protocol: 'wss'
  78. }
  79. },
  80. }
  81. }