Home

Issue: 578

webpack config with vue-echarts

[issue link]

I’am using vue-echarts whit nuxt.
It can run fine in dev mode, when I use generate, it get’s a known webpack error because of vue-echarts. here is the way to solve in webpack build of vue-cli: https://github.com/Justineo/vue-echarts#heads-up

but when I set this in nuxt.config.js, with example here: https://nuxtjs.org/api/configuration-build/#babel :

    loaders: [{
      test: /\.js$/,
      loader: 'babel-loader',
      exclude: /node_modules(?![\\/]vue-echarts[\\/])/
    }],

it can’t work.

how can I get it to work?

This question is available on Nuxt.js community (#c506)