Skip to content

Commit a900f1b

Browse files
committed
feat(perf): put css/js in external files for legacy-html
1 parent e44f080 commit a900f1b

File tree

6 files changed

+197
-218
lines changed

6 files changed

+197
-218
lines changed

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)