Skip to content
This repository has been archived by the owner on May 15, 2023. It is now read-only.

Commit

Permalink
Enable module concatenation
Browse files Browse the repository at this point in the history
  • Loading branch information
iamakulov committed Jan 30, 2018
1 parent 1f336c8 commit c376ab2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ module.exports = {
}),
// Remove all Moment.js’ locales expect the English one
new MomentLocalesPlugin(),
// Concatenate modules where possible
new webpack.optimize.ModuleConcatenationPlugin(),
]
: [
// Force writing the HTML files to disk when running in the development mode
Expand Down

1 comment on commit c376ab2

@iamakulov
Copy link
Contributor Author

@iamakulov iamakulov commented on c376ab2 Jan 30, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit enables module concatenation. Corresponding article section

Module concatenation merges as many modules together as possible. This removes module wrappers and makes the app slightly faster and smaller.

Sizes
bundle.js went down from 157 kB to 154 kB.

Please sign in to comment.