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.

95 lines
2.0 KiB

  1. import colors from 'vuetify/es5/util/colors'
  2. export default {
  3. mode: 'spa',
  4. /*
  5. ** Headers of the page
  6. */
  7. head: {
  8. titleTemplate: '%s - ' + process.env.npm_package_name,
  9. title: process.env.npm_package_name || '',
  10. meta: [
  11. { charset: 'utf-8' },
  12. { name: 'viewport', content: 'width=device-width, initial-scale=1' },
  13. { hid: 'description', name: 'description', content: process.env.npm_package_description || '' }
  14. ],
  15. script: [
  16. { src: 'https://use.fontawesome.com/releases/v5.0.6/js/all.js' }
  17. ],
  18. link: [
  19. { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
  20. {
  21. rel: 'stylesheet',
  22. href:
  23. 'https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Material+Icons'
  24. }
  25. ]
  26. },
  27. serverMiddleware: [
  28. '~/api/index.js'
  29. ],
  30. /*
  31. ** Customize the progress-bar color
  32. */
  33. loading: { color: '#fff' },
  34. /*
  35. ** Global CSS
  36. */
  37. css: [
  38. ],
  39. /*
  40. ** Plugins to load before mounting the App
  41. */
  42. plugins: [
  43. '~/plugins/filters.js'
  44. ],
  45. /*
  46. ** Nuxt.js modules
  47. */
  48. modules: [
  49. '@nuxtjs/vuetify',
  50. // Doc: https://axios.nuxtjs.org/usage
  51. '@nuxtjs/axios',
  52. '@nuxtjs/eslint-module'
  53. ],
  54. /*
  55. ** Axios module configuration
  56. ** See https://axios.nuxtjs.org/options
  57. */
  58. axios: {
  59. },
  60. /*
  61. ** vuetify module configuration
  62. ** https://github.com/nuxt-community/vuetify-module
  63. */
  64. vuetify: {
  65. theme: {
  66. primary: colors.blue.darken2,
  67. accent: colors.grey.darken3,
  68. secondary: colors.amber.darken3,
  69. info: colors.teal.lighten1,
  70. warning: colors.amber.base,
  71. error: colors.deepOrange.accent4,
  72. success: colors.green.accent3
  73. }
  74. },
  75. /*
  76. ** Build configuration
  77. */
  78. build: {
  79. /*
  80. ** You can extend webpack config here
  81. */
  82. extend(config, ctx) {
  83. config.module.rules.push({
  84. test: /\.(txt|csv|conll|jsonl)$/i,
  85. loader: 'file-loader',
  86. options: {
  87. name: '[path][name].[ext]'
  88. }
  89. })
  90. }
  91. }
  92. }