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

80 行
1.6KB

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