This repository was archived by the owner on Aug 10, 2022. It is now read-only.
File tree 2 files changed +10
-2
lines changed
src/content/en/fundamentals/performance/webpack
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ project_path: /web/fundamentals/_project.yaml
2
2
book_path: /web/fundamentals/_ book.yaml
3
3
description: How to use webpack to make your app as small as possible
4
4
5
- {# wf_updated_on: 2017-12-18 #}
5
+ {# wf_updated_on: 2018-02-24 #}
6
6
{# wf_published_on: 2017-12-18 #}
7
7
{# wf_blink_components: N/A #}
8
8
@@ -13,6 +13,10 @@ description: How to use webpack to make your app as small as possible
13
13
One of the first things to do when you’re optimizing an application is to make it as small as
14
14
possible. Here’s how to do this with webpack.
15
15
16
+ Note: This page covers optimization strategies for webpack 3. A few parts
17
+ of it aren’t necessary or work slightly differently with webpack 4. We’re waiting
18
+ for the webpack ecosystem to stabilize, and then we’ll update this guide.
19
+
16
20
## Enable minification
17
21
18
22
Minification is when you compress the code by removing extra spaces, shortening variable names and
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ project_path: /web/fundamentals/_project.yaml
2
2
book_path: /web/fundamentals/_ book.yaml
3
3
description: How webpack helps with asset caching
4
4
5
- {# wf_updated_on: 2018-02-08 #}
5
+ {# wf_updated_on: 2018-02-24 #}
6
6
{# wf_published_on: 2018-02-08 #}
7
7
{# wf_blink_components: N/A #}
8
8
@@ -14,6 +14,10 @@ The next thing (after [optimizing the app size](./decrease-frontend-size)) that
14
14
improves the app loading time is caching. Use it to keep parts of the app on the
15
15
client and avoid re-downloading them every time.
16
16
17
+ Note: This page covers optimization strategies for webpack 3. A few parts
18
+ of it aren’t necessary or work slightly differently with webpack 4. We’re waiting
19
+ for the webpack ecosystem to stabilize, and then we’ll update this guide.
20
+
17
21
## Use bundle versioning and cache headers
18
22
19
23
The common approach of doing caching is to:
You can’t perform that action at this time.
0 commit comments