Skip to content

Instantly share code, notes, and snippets.

@ednilsonamaral
Created July 28, 2018 19:31
Show Gist options
  • Select an option

  • Save ednilsonamaral/edf3df9febeb1f144ab2b043e20cdf55 to your computer and use it in GitHub Desktop.

Select an option

Save ednilsonamaral/edf3df9febeb1f144ab2b043e20cdf55 to your computer and use it in GitHub Desktop.

Revisions

  1. ednilsonamaral created this gist Jul 28, 2018.
    38 changes: 38 additions & 0 deletions nuxt.config.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,38 @@
    module.exports = {
    head: {
    title: 'Plataforma',
    meta: [
    { charset: 'utf-8' },
    { name: 'viewport', content: 'width=device-width, initial-scale=1' },
    { hid: 'description', name: 'description', content: 'Conteúdos' }
    ],
    link: [
    { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
    { rel: 'stylesheet', href: 'https://use.fontawesome.com/releases/v5.1.0/css/all.css' }
    ]
    },

    loading: { color: '#3B8070' },

    css: [
    '~/node_modules/bootstrap/scss/bootstrap-grid.scss',
    '~/assets/scss/main.scss'
    ],

    plugins: [
    '~/plugins/vue-carousel.js'
    ],

    build: {
    extend (config, ctx) {
    if (ctx.isDev && ctx.isClient) {
    config.module.rules.push({
    enforce: 'pre',
    test: /\.(js|vue)$/,
    loader: 'eslint-loader',
    exclude: /(node_modules)/
    })
    }
    }
    }
    }