Skip to content

Commit 78214e3

Browse files
committed
feat(perf): externalize CSS/JS, increment coverage
1 parent e44f080 commit 78214e3

File tree

8 files changed

+206
-226
lines changed

8 files changed

+206
-226
lines changed

.c8rc.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
{
2-
"all": true
2+
"all": true,
3+
"exclude": [
4+
"eslint.config.mjs",
5+
"**/fixtures",
6+
"src/generators/legacy-html/assets"
7+
]
38
}

codecov.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ coverage:
99
target: 80%
1010
project:
1111
default:
12-
# TODO(@avivkeller): Once our coverage > 70%,
13-
# increase this to 70%, and increase on increments
14-
target: 60%
15-
16-
ignore:
17-
- 'eslint.config.mjs'
18-
- '**/fixtures/'
12+
# TODO(@avivkeller): Once our coverage > 80%,
13+
# increase this to 80%, and increase on increments
14+
target: 70%

eslint.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,6 @@ export default [
7676
},
7777
{
7878
files: ['src/generators/legacy-html/assets/*.js'],
79-
languageOptions: { globals: { ...globals.browser } },
79+
languageOptions: { globals: { ...globals.browser }, ecmaVersion: 'latest' },
8080
},
8181
];

src/generators/legacy-html-all/index.mjs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,6 @@ export default {
9797
// We minify the html result to reduce the file size and keep it "clean"
9898
const minified = await minify(generatedAllTemplate, {
9999
collapseWhitespace: true,
100-
minifyJS: true,
101-
minifyCSS: true,
102100
});
103101

104102
if (output) {

0 commit comments

Comments
 (0)