Webpack bundle.js login point size limit

Question

In my Angular2 node application, this warning appears without making any changes to my application,

Attention

WARNING when limiting the size of assets: the following assets (assets) exceed the recommended size limit (250 kB). This may affect network performance. Assets: bundle.js (10.3 MB)

WARNING at the entry point size limit: The following entry points combined asset size exceeds the recommended limit (250 kB). This may affect the internet performance. Entry Points: Application (10.3 MB) bundle.js

WARNING in webpack performance recommendations: you can limit the size of your packages using System.import () or require.ensure to lazy download some parts of your application. For more information, visit https://webpack.js.org/guides/code-splitting/

Background

I'm interested in the problem. To understand this and how to fix it, before he comes to the need for a solution. I thought my design template was wrong.

Question

1. By changing the design pattern or architecture, can this problem be avoided?

2. If so, how?

3. What exactly makes the application too big with this error?

4. , , Webpack ?

+4
1
+5

Source: https://habr.com/ru/post/1663807/


All Articles