DEV Community

Discussion on: A crash course on serverless-side rendering with Vue.js, Nuxt.js and AWS Lambda

Collapse
 
dseeker profile image
D See Ker

Works great, but resulting package is 40MB+
Would be good to see another tutorial on trimming the unused packages. I tried with Exclude/Include in serverless CLI and also the serverless-plugin-optimize and serverless-plugin-include-dependencies, they all had an effect on the output size, but none worked in AWS :(
Shouldn't we compile the application and send only the dist files instead of the entire node_modules folder?

Collapse
 
ludofleury profile image
Ludovic Fleury • Edited

check my answer here: dev.to/ludofleury/comment/icn2