2

I have the problem that MediaWiki doesn't support certain new JavaScript syntaxes (possibly >= ES 2015); quoting from MediaWiki support desk:

MediaWiki performs JavaScript bundle and minification. The library that performs the minification may not support this syntax yet, that's why it's not being applied.

Is minifying and bundling (the aforementioned "bundle") the same operations?

Update

After reading MrWhite's answer I understand that "bundling" here is what I knew several years already as "aggregation", the common term in the Drupal community.

1
  • It's worth noting that while bundling and minification are different processes, they are often done by the same tool, together in a single pass. Sep 14 at 16:33
2

I would take it that "bundling" is the combining of several files into fewer (or even a single) files in order to reduce the number of separate HTTP requests the browser needs to make.

Minification is the process of reducing the size of those files.

These are two different operations.

3
  • Oh, I know "bundling" as "aggregation". Sep 14 at 14:29
  • @variableism Whilst "bundling" and "aggregation" have similar meaning, I wouldn't necessarily use "aggregation" in this context. "bundling" is literally packing items together to save space. Whereas "aggregation" is just grouping items together. In a web context, it is more commonly used with things like "news/content aggregation" etc. If Drupal uses "aggregation" for the specific task of combining files into a package then I would have said this is reasonably unique to Drupal.
    – MrWhite
    Sep 14 at 14:49
  • MrWhite, thanks, in the context of JavaScript, wouldn't that always be the same thing (unifying all into one big file)? Sep 15 at 1:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.