question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hi, I was comparing the result of the serverless-bundle (I’m using the beta branch because I’m using typescript to develop) with serverless-plugin-ncc and I see that the final bundle of serverless-bundle is quite havier compared to serverless-plugin-ncc

index.js from serverless-bundle is 2,319KB index.js from serverless-plugin-ncc is 1,105KB

I don’t know internally if there are differences but as far as I can see it’s not possible to minify the serverless-bundle output.

So I’ve two questions:

  1. would it be possible to add that option to serverless-bundle?
  2. have you ever thought to create an ncc plugin? (because I know guys that you are damn amazing in support serverless and I would like to see something from your own!). serverless-plugin-ncc seems to not support serverless-offline and many cool things that come from your bundle plugin.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
rogueturnipcommented, Sep 18, 2021

Is there a way to disable minimization? I’m using serverless-mysql in my code and get the following error:

Received packet in the wrong sequence

It seems like this is an issue with webpack minimization because rolling back to 4.4.0 fixes the issue

2reactions
thomaschaafcommented, Jun 16, 2021

V5 Beta has minification enabled 🙂

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is Minification | Why minify JS, HTML, CSS files - Imperva
Minification is the process of minimizing code and markup in your web pages and script files. It's one of the main methods used...
Read more >
How to build minified and uncompressed bundle with webpack?
This uses an array of configuration to enable webpack to build the minified and non-minified version in parallel. This make build faster.
Read more >
How to build both minified and uncompressed bundle with ...
Q: How to build both minified and uncompressed bundle with Webpack? A1: Use plugin UglifyJsPlugin (before webpack 4). let webpack = require ...
Read more >
Minification (programming) - Wikipedia
Minification (also minimisation or minimization) is the process of removing all unnecessary characters from the source code of interpreted programming ...
Read more >
How to Minify JavaScript — Recommended Tools and Methods
JSMin is a dedicated command line JavaScript minification tool and library to minify the JavaScript code and make the code as lightweight as ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found