Skip to content
This repository was archived by the owner on Aug 10, 2022. It is now read-only.

Commit 01e03be

Browse files
iamakulovpetele
authored andcommitted
Add notes about webpack 4 (#5820)
1 parent b62bc7b commit 01e03be

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

src/content/en/fundamentals/performance/webpack/decrease-frontend-size.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ project_path: /web/fundamentals/_project.yaml
22
book_path: /web/fundamentals/_book.yaml
33
description: How to use webpack to make your app as small as possible
44

5-
{# wf_updated_on: 2017-12-18 #}
5+
{# wf_updated_on: 2018-02-24 #}
66
{# wf_published_on: 2017-12-18 #}
77
{# wf_blink_components: N/A #}
88

@@ -13,6 +13,10 @@ description: How to use webpack to make your app as small as possible
1313
One of the first things to do when you’re optimizing an application is to make it as small as
1414
possible. Here’s how to do this with webpack.
1515

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+
1620
## Enable minification
1721

1822
Minification is when you compress the code by removing extra spaces, shortening variable names and

src/content/en/fundamentals/performance/webpack/use-long-term-caching.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ project_path: /web/fundamentals/_project.yaml
22
book_path: /web/fundamentals/_book.yaml
33
description: How webpack helps with asset caching
44

5-
{# wf_updated_on: 2018-02-08 #}
5+
{# wf_updated_on: 2018-02-24 #}
66
{# wf_published_on: 2018-02-08 #}
77
{# wf_blink_components: N/A #}
88

@@ -14,6 +14,10 @@ The next thing (after [optimizing the app size](./decrease-frontend-size)) that
1414
improves the app loading time is caching. Use it to keep parts of the app on the
1515
client and avoid re-downloading them every time.
1616

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+
1721
## Use bundle versioning and cache headers
1822

1923
The common approach of doing caching is to:

0 commit comments

Comments
 (0)