nuxt.config.js 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. import pkg from './package'
  2. export default {
  3. mode: 'universal',
  4. /*
  5. ** Headers of the page
  6. */
  7. head: {
  8. title: pkg.name,
  9. meta: [
  10. { charset: 'utf-8' },
  11. { name: 'viewport', content: 'width=device-width, initial-scale=1' },
  12. { hid: 'description', name: 'description', content: pkg.description }
  13. ],
  14. link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }]
  15. },
  16. /*
  17. ** Customize the progress-bar color
  18. */
  19. loading: { color: '#fff' },
  20. /*
  21. ** Global CSS
  22. */
  23. css: [],
  24. /*
  25. ** Plugins to load before mounting the App
  26. */
  27. plugins: [
  28. { src: '~plugins/axios', ssr: true },
  29. ],
  30. /*
  31. ** Nuxt.js modules
  32. */
  33. modules: [
  34. // Doc: https://axios.nuxtjs.org/usage
  35. '@nuxtjs/axios',
  36. // Doc: https://bootstrap-vue.js.org/docs/
  37. 'bootstrap-vue/nuxt',
  38. '@nuxtjs/pwa'
  39. ],
  40. /*
  41. ** Axios module configuration
  42. */
  43. axios: {
  44. // See https://github.com/nuxt-community/axios-module#options
  45. },
  46. /*
  47. ** Build configuration
  48. */
  49. build: {
  50. /*
  51. ** You can extend webpack config here
  52. */
  53. extend(config, ctx) {
  54. // Run ESLint on save
  55. // if (ctx.isDev && ctx.isClient) {
  56. // config.module.rules.push({
  57. // enforce: 'pre',
  58. // test: /\.(js|vue)$/,
  59. // loader: 'eslint-loader',
  60. // exclude: /(node_modules)/
  61. // })
  62. // }
  63. const sassResourcesLoader = {
  64. loader: 'sass-resources-loader',
  65. options: {
  66. resources: [
  67. 'assets/cyc.scss'
  68. ]
  69. }
  70. }
  71. }
  72. }
  73. }