您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

82 行
1.7KB

  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. ]
  18. },
  19. /*
  20. ** Load global CSS
  21. */
  22. css: ['@/assets/css/main.css'],
  23. /*
  24. ** Load nuxt modules
  25. */
  26. modules: [
  27. 'nuxt-purgecss',
  28. '@nuxtjs/axios',
  29. ['nuxt-fontawesome', {
  30. component: 'fa',
  31. imports: [
  32. //import whole set
  33. {
  34. set: '@fortawesome/free-solid-svg-icons',
  35. icons: ['fas']
  36. }
  37. ]
  38. }],
  39. ['wp-nuxt', {
  40. endpoint: 'https://blog.rohanverma.net/wp-json'
  41. }],
  42. ],
  43. /*
  44. ** PurgeCSS
  45. ** https://github.com/Developmint/nuxt-purgecss
  46. */
  47. purgeCSS: {},
  48. /*
  49. ** This option is given directly to the vue-router Router constructor
  50. */
  51. router: {
  52. base: '',
  53. linkActiveClass: 'is-active'
  54. },
  55. /*
  56. ** Customize the progress bar color
  57. */
  58. loading: { color: '#3B8070' },
  59. /*
  60. ** Build configuration
  61. */
  62. build: {
  63. /*
  64. + ** Extract CSS
  65. + */
  66. extractCSS: true,
  67. /*
  68. ** Run ESLint on save
  69. */
  70. extend (config, { isDev, isClient }) {
  71. if (isDev && isClient) {
  72. config.module.rules.push({
  73. enforce: 'pre',
  74. test: /\.(js|vue)$/,
  75. loader: 'eslint-loader',
  76. exclude: /(node_modules)/
  77. })
  78. }
  79. }
  80. }
  81. }