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.

77 line
1.5KB

  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. ],
  38. /*
  39. ** PurgeCSS
  40. ** https://github.com/Developmint/nuxt-purgecss
  41. */
  42. purgeCSS: {},
  43. /*
  44. ** This option is given directly to the vue-router Router constructor
  45. */
  46. router: {
  47. base: '',
  48. linkActiveClass: 'is-active'
  49. },
  50. /*
  51. ** Customize the progress bar color
  52. */
  53. loading: { color: '#3B8070' },
  54. /*
  55. ** Build configuration
  56. */
  57. build: {
  58. /*
  59. + ** Extract CSS
  60. + */
  61. extractCSS: true,
  62. /*
  63. ** Run ESLint on save
  64. */
  65. extend (config, { isDev, isClient }) {
  66. if (isDev && isClient) {
  67. config.module.rules.push({
  68. enforce: 'pre',
  69. test: /\.(js|vue)$/,
  70. loader: 'eslint-loader',
  71. exclude: /(node_modules)/
  72. })
  73. }
  74. }
  75. }
  76. }