카테고리 없음

[ NUXT ] 빌드시 Optimize 에러

HEON.D 2021. 4. 14. 10:00

빌드시 에러

[BABEL] maximum size 500KB issue in server?

 

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

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 deoptim...

stackoverflow.com

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.

....
 /*
 ** You can extend webpack config here
 */
 extend(config, ctx) {},
 babel: { compact: true }

nuxt.config.js 파일

babel: { compact: true } 추가