nuxt.config.js
/*
    ** You can extend webpack config here
    */
You can extend webpack config here
You can extend webpack config here
extend(config, ctx) {
      if (ctx.isDev && ctx.isClient) {
        config.module.rules.push({
          enforce: 'pre',
          test: /\.(js|vue)$/,
          loader: 'eslint-loader',
          exclude: /node_modules/
        })
      }
      config.module.rules.push({
        test: /\.(md|markdown)$/i,
        exclude: /node_modules/,
        use: [
          { loader: 'html-loader' },
          { loader: 'markdown-loader', options: { renderer } }
        ]
      })
    }
extend ( config , ctx ) { if ( ctx . isDev && ctx . isClient ) { config . module . rules . push ( { enforce : 'pre' , test : / \.(js|vue)$ / , loader : 'eslint-loader' , exclude : / node_modules / } ) } config . module . rules . push ( { test : / \.(md|markdown)$ / i , exclude : / node_modules / , use : [ { loader : 'html-loader' } , { loader : 'markdown-loader' , options : { renderer } } ] } ) }
You can extend webpack config here
You can extend webpack config here
// Run ESLint on save