Home

Issue: 2846

How can i build lodash to vendor with lodash-webpack-plugin & babel-plugin-lodash

[issue link]

Hi,

I would like to move my lodash scripts to vendor when im using them.

When i define it into my vendor section of config file it loads whole lodash to it.

    vendor: [
      'lodash'
    ]

My build part is like this.

build: {
    babel: {
      plugins: ['lodash'],
      presets: ['vue-app']
    },
    plugins: [
      new LodashModuleReplacementPlugin()
    ]
}
This question is available on Nuxt.js community (#c2472)