module.exports = { /* ** Headers of the page */ head: { titleTemplate: '%s | rohanverma.net', htmlAttrs: { lang: 'en' }, meta: [ { charset: 'utf-8' }, { name: 'viewport', content: 'width=device-width, initial-scale=1' }, { name: 'theme-color', content: '#6574cd' }, { hid: 'description', name: 'description', content: 'Personal Website of Rohan Verma' }, ], link: [ { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }, { rel: 'stylesheet', href: 'https://rsms.me/inter/inter.css' }, { rel: 'stylesheet', href: 'https://fonts.googleapis.com/css?family=Playfair+Display' } ] }, /* ** Load global CSS */ css: ['@/assets/css/main.css'], /* ** Load nuxt modules */ modules: [ 'nuxt-purgecss', '@nuxtjs/axios', ['nuxt-fontawesome', { component: 'fa', imports: [ //import whole set { set: '@fortawesome/free-solid-svg-icons', icons: ['fas'] } ] }], ['wp-nuxt', { endpoint: 'https://blog.rohanverma.net/wp-json' }], ], /* ** PurgeCSS ** https://github.com/Developmint/nuxt-purgecss */ purgeCSS: {}, /* ** This option is given directly to the vue-router Router constructor */ router: { base: '', linkActiveClass: 'is-active' }, /* ** Customize the progress bar color */ loading: { color: '#3B8070' }, /* ** Build configuration */ build: { /* + ** Extract CSS + */ extractCSS: true, /* ** Run ESLint on save */ extend (config, { isDev, isClient }) { if (isDev && isClient) { config.module.rules.push({ enforce: 'pre', test: /\.(js|vue)$/, loader: 'eslint-loader', exclude: /(node_modules)/ }) } } } }