Skip to content

Commit 3af2603

Browse files
committed
add lesson 8-1: performance ci adjustments end
1 parent aa54f64 commit 3af2603

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

81-review/lighthouserc.js

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,8 @@ module.exports = {
44
preset: "lighthouse:no-pwa",
55
assertions: {
66
// Performance related
7-
// "font-display": "off",
8-
// "unsized-images": "off",
9-
// "unused-css-rules": "off",
10-
// "unused-javascript": "off",
11-
// "uses-optimized-images": "off",
12-
// "uses-responsive-images": "off",
13-
// "unminified-css": "off",
14-
// "third-party-facades": "off",
15-
// "offscreen-images": "off",
7+
"font-display": "warn",
8+
"unused-javascript": "warn",
169
// Not performance related
1710
"tap-targets": "off",
1811
"non-composited-animations": "off",

81-review/webpack.prod.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,7 @@ module.exports = merge(common, {
4949
optimization: {
5050
minimizer: [new CssMinimizerPlugin(), "..."],
5151
},
52+
performance: {
53+
hints: "error",
54+
},
5255
});

0 commit comments

Comments
 (0)