You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

83 lines
2.0 KiB

  1. export default {
  2. // Global page headers: https://go.nuxtjs.dev/config-head
  3. head: {
  4. title: 'flylocal-v5-nuxt',
  5. meta: [
  6. { charset: 'utf-8' },
  7. { name: 'viewport', content: 'width=device-width, initial-scale=1' },
  8. { hid: 'description', name: 'description', content: '' },
  9. { name: 'format-detection', content: 'telephone=no' }
  10. ],
  11. link: [
  12. { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
  13. ]
  14. },
  15. // Global CSS: https://go.nuxtjs.dev/config-css
  16. css: [
  17. ],
  18. // Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
  19. plugins: [
  20. { src: '~/plugins/vue2-leaflet-markercluster.js', mode: 'client' }
  21. ],
  22. // Auto import components: https://go.nuxtjs.dev/config-components
  23. components: true,
  24. router: {
  25. extendRoutes (routes, resolve) {
  26. routes.push(
  27. {
  28. name: 'go-orig-dest',
  29. path: '/go/*/*',
  30. component: resolve(__dirname, 'pages/go.vue')
  31. },
  32. {
  33. name: 'go-orig',
  34. path: '/go/*',
  35. component: resolve(__dirname, 'pages/go.vue')
  36. }
  37. )
  38. }
  39. },
  40. // Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
  41. buildModules: [
  42. // https://go.nuxtjs.dev/eslint
  43. '@nuxtjs/eslint-module',
  44. // https://go.nuxtjs.dev/stylelint
  45. '@nuxtjs/stylelint-module',
  46. // https://go.nuxtjs.dev/tailwindcss
  47. '@nuxtjs/tailwindcss'
  48. ],
  49. // Modules: https://go.nuxtjs.dev/config-modules
  50. modules: [
  51. // https://go.nuxtjs.dev/axios
  52. '@nuxtjs/axios',
  53. // https://go.nuxtjs.dev/pwa
  54. '@nuxtjs/pwa',
  55. 'nuxt-leaflet',
  56. 'nuxt-vue-select'
  57. ],
  58. // Axios module configuration: https://go.nuxtjs.dev/config-axios
  59. axios: {},
  60. // PWA module configuration: https://go.nuxtjs.dev/pwa
  61. pwa: {
  62. manifest: {
  63. lang: 'en'
  64. }
  65. },
  66. // Build Configuration: https://go.nuxtjs.dev/config-build
  67. build: {
  68. extend (config, ctx) {
  69. if (ctx.isDev) {
  70. config.devtool = ctx.isClient ? 'source-map' : 'inline-source-map'
  71. }
  72. }
  73. }
  74. }