Axios-module: Should i put @nuxtjs/axios in nuxt.config.js build.vendor?

Created on 16 Feb 2018  路  1Comment  路  Source: nuxt-community/axios-module

Hi,

Is it recommend to put @nuxtjs/axios in build vendor? like this

```javascript
...
build: {
vendor: [
'@nuxtjs/axios'
],
},
modules: [
'@nuxtjs/axios'
],
...

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

Most helpful comment

Hi @PhouvanhKCSV. Both yes and no. I suggest only including axios in the vendor section if you want. Also, explicit vendor will not be needed anymore using nuxt 2.0.0 (upcoming version) webpack 4 will handle this automatically.

>All comments

Hi @PhouvanhKCSV. Both yes and no. I suggest only including axios in the vendor section if you want. Also, explicit vendor will not be needed anymore using nuxt 2.0.0 (upcoming version) webpack 4 will handle this automatically.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

WtekSupport picture WtekSupport  路  6Comments

altafsayani picture altafsayani  路  3Comments

lyzs90 picture lyzs90  路  4Comments

jb-alvarado picture jb-alvarado  路  3Comments

artmarydotir picture artmarydotir  路  4Comments