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.

110 lines
2.6 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. '~assets/css/main.css'
  18. ],
  19. // Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
  20. plugins: [
  21. { src: '~/plugins/vue2-leaflet-markercluster.js', mode: 'client' }
  22. ],
  23. // Auto import components: https://go.nuxtjs.dev/config-components
  24. components: true,
  25. router: {
  26. extendRoutes (routes, resolve) {
  27. routes.push(
  28. {
  29. name: 'go-orig-dest',
  30. path: '/go/:o/:d',
  31. component: resolve(__dirname, 'pages/go.vue')
  32. },
  33. {
  34. name: 'go-orig',
  35. path: '/go/:o',
  36. component: resolve(__dirname, 'pages/go.vue')
  37. },
  38. {
  39. name: 'flights-orig-dest',
  40. path: '/flights/:o/:d',
  41. component: resolve(__dirname, 'pages/flights.vue')
  42. },
  43. {
  44. name: 'flights-orig',
  45. path: '/flights/:o',
  46. component: resolve(__dirname, 'pages/flights.vue')
  47. }
  48. )
  49. }
  50. },
  51. // Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
  52. buildModules: [
  53. // https://go.nuxtjs.dev/eslint
  54. '@nuxtjs/eslint-module',
  55. // https://go.nuxtjs.dev/stylelint
  56. '@nuxtjs/stylelint-module',
  57. // https://go.nuxtjs.dev/tailwindcss
  58. '@nuxtjs/tailwindcss',
  59. '@nuxtjs/style-resources'
  60. ],
  61. styleResources: {
  62. scss: [
  63. '~assets/scss/mixins.scss',
  64. '~assets/scss/variables.scss'
  65. ]
  66. },
  67. // Modules: https://go.nuxtjs.dev/config-modules
  68. modules: [
  69. // https://go.nuxtjs.dev/axios
  70. '@nuxtjs/axios',
  71. // https://go.nuxtjs.dev/pwa
  72. '@nuxtjs/pwa',
  73. 'nuxt-leaflet',
  74. 'nuxt-vue-select'
  75. ],
  76. // Axios module configuration: https://go.nuxtjs.dev/config-axios
  77. axios: {},
  78. // PWA module configuration: https://go.nuxtjs.dev/pwa
  79. pwa: {
  80. manifest: {
  81. lang: 'en'
  82. }
  83. },
  84. // Build Configuration: https://go.nuxtjs.dev/config-build
  85. build: {
  86. extend (config, ctx) {
  87. if (ctx.isDev) {
  88. config.devtool = ctx.isClient ? 'source-map' : 'inline-source-map'
  89. }
  90. },
  91. loaders: {
  92. sass: {
  93. implementation: require('sass')
  94. },
  95. scss: {
  96. implementation: require('sass')
  97. }
  98. }
  99. }
  100. }