摘要:
When you have a dependency that does not export itself properly, you can use the exports-loader to force it to export the pieces of the file that you 阅读全文
摘要:
When you use ngrx/store and you want to fire a service request. When it sucessfully return the response, you need to dispatch action to tell the store 阅读全文
摘要:
If you have a multi-page application (as opposed to a single page app), you’re likely sharing modules between these pages. By chunking these common mo 阅读全文
摘要:
Often, you have dependencies which you rarely change. In these cases, you can leverage the CommonsChunkPlugin to automatically put these modules in a 阅读全文
摘要:
Leveraging the browser cache is an important part of page load performance. A great way to utilize this cache is by versioning your resources. In this 阅读全文
摘要:
As a Single Page Application grows in size, the size of the payload can become a real problem for performance. In this lesson, learn how to leverage c 阅读全文
摘要:
If you're going to use code splitting with Webpack 2, you'll need to make sure the browser has support for the ES6 Promise API. This means that if you 阅读全文
摘要:
The less code you can send to the browser, the better. The concept of tree shaking basically says that if you’re not using some piece of code, then ex 阅读全文
摘要:
It’s quite common to make a mistake while developing your webpack configuration. A simple typo can cost you hours of development time. With webpack-va 阅读全文
摘要:
There are several lessons that will build on top of this project. It is a fairly standard, small webpack bundled project. In this lesson we’ll explore 阅读全文