Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

83 rindas
1.8KB

  1. module.exports = {
  2. /*
  3. ** Headers of the page
  4. */
  5. head: {
  6. titleTemplate: '%s | rohanverma.net',
  7. htmlAttrs: { lang: 'en' },
  8. meta: [
  9. { charset: 'utf-8' },
  10. { name: 'viewport', content: 'width=device-width, initial-scale=1' },
  11. { name: 'theme-color', content: '#6574cd' },
  12. { hid: 'description', name: 'description', content: 'Personal Website of Rohan Verma' },
  13. ],
  14. link: [
  15. { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
  16. { rel: 'stylesheet', href: 'https://rsms.me/inter/inter.css' },
  17. { rel: 'stylesheet', href: 'https://fonts.googleapis.com/css?family=Playfair+Display' }
  18. ]
  19. },
  20. /*
  21. ** Load global CSS
  22. */
  23. css: ['@/assets/css/main.css'],
  24. /*
  25. ** Load nuxt modules
  26. */
  27. modules: [
  28. 'nuxt-purgecss',
  29. '@nuxtjs/axios',
  30. ['nuxt-fontawesome', {
  31. component: 'fa',
  32. imports: [
  33. //import whole set
  34. {
  35. set: '@fortawesome/free-solid-svg-icons',
  36. icons: ['fas']
  37. }
  38. ]
  39. }],
  40. ['wp-nuxt', {
  41. endpoint: 'https://blog.rohanverma.net/wp-json'
  42. }],
  43. ],
  44. /*
  45. ** PurgeCSS
  46. ** https://github.com/Developmint/nuxt-purgecss
  47. */
  48. purgeCSS: {},
  49. /*
  50. ** This option is given directly to the vue-router Router constructor
  51. */
  52. router: {
  53. base: '',
  54. linkActiveClass: 'is-active'
  55. },
  56. /*
  57. ** Customize the progress bar color
  58. */
  59. loading: { color: '#3B8070' },
  60. /*
  61. ** Build configuration
  62. */
  63. build: {
  64. /*
  65. + ** Extract CSS
  66. + */
  67. extractCSS: true,
  68. /*
  69. ** Run ESLint on save
  70. */
  71. extend (config, { isDev, isClient }) {
  72. if (isDev && isClient) {
  73. config.module.rules.push({
  74. enforce: 'pre',
  75. test: /\.(js|vue)$/,
  76. loader: 'eslint-loader',
  77. exclude: /(node_modules)/
  78. })
  79. }
  80. }
  81. }
  82. }