extend(config, ctx) {
      // Run ESLint on save
      if (ctx.isDev && ctx.isClient) {
        config.module.rules.push({
          enforce: 'pre',
          test: /\.(js|vue)$/,
          loader: 'eslint-loader',
          exclude: [/(node_modules)/, /(static)/]
        })
      }
    }
/*
    ** 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)/, /(static)/]
        })
      }
    }
extend ( config , ctx ) { if ( ctx . isDev && ctx . isClient ) { config . module . rules . push ( { enforce : 'pre' , test : / \.(js|vue)$ / , loader : 'eslint-loader' , exclude : [ / (node_modules) / , / (static) / ] } ) } }
You can extend webpack config here
You can extend webpack config here
// Run ESLint on save