How can solve the ERROR [BABEL] maximum size 500KB issue in server?

Viewed 13070

I am using NUXTJS application for an SSR page, but i am getting an error of bootstrap-vue icon size issue.

The file is hosted in AWS server and this will be the error

The code generator has deoptimised the styling of 
/var/www/html/my_folder/node_modules/bootstrap-vue/src/icons/icons.js
as it exceeds the max of 500KB.

enter image description here

What will be the issue on this ? i have added babbel in build location too..

2 Answers

you can add it like this and it works,just added in your nuxt.config.js file

  build: {
     babel: {
      compact: true,
     },
  },
Related