Skip to content

Commit

Permalink
1.1.33
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaRHristov committed Feb 15, 2023
1 parent 1c33c92 commit 95898ec
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 8 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.1.33

- Process scripts enhancement

## 1.1.32

- Revert bug fix
Expand Down
7 changes: 4 additions & 3 deletions dist/options/html.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,25 @@ declare const _default: {
collapseWhitespace: true;
continueOnParseError: true;
html5: true;
ignoreCustomComments: RegExp[];
includeAutoGeneratedTags: true;
keepClosingSlash: true;
minifyCSS: true;
minifyJS: true;
minifyURLs: false;
noNewlinesBeforeTagClose: true;
preventAttributesEscaping: false;
processConditionalComments: false;
processScripts: string[];
quoteCharacter: string;
removeAttributeQuotes: true;
removeComments: true;
ignoreCustomComments: RegExp[];
removeScriptTypeAttributes: true;
removeStyleLinkTypeAttributes: true;
removeTagWhitespace: false;
sortAttributes: true;
sortClassName: true;
trimCustomFragments: true;
useShortDoctype: false;
noNewlinesBeforeTagClose: true;
quoteCharacter: string;
};
export default _default;
2 changes: 1 addition & 1 deletion dist/options/html.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "astro-compress",
"version": "1.1.32",
"version": "1.1.33",
"type": "module",
"description": "🗜️ AstroJS compression utilities. Compress HTML, CSS, JavaScript and more.",
"repository": {
Expand Down
58 changes: 55 additions & 3 deletions src/options/html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,75 @@ export default {
collapseWhitespace: true,
continueOnParseError: true,
html5: true,
ignoreCustomComments: [/^\s*#/, /^\s*\[/, /^\s*\]/, /^\s*!/, /^\s*\//],
includeAutoGeneratedTags: true,
keepClosingSlash: true,
minifyCSS: true,
minifyJS: true,
minifyURLs: false,
noNewlinesBeforeTagClose: true,
preventAttributesEscaping: false,
processConditionalComments: false,
processScripts: [
"application/ecmascript",
"application/javascript",
"application/json",
"application/ld+json",
"application/manifest+json",
"application/schema+json",
"application/vnd.geo+json",
"application/x-web-app-manifest+json",
"application/xhtml+xml",
"application/xml",
"image/svg+xml",
"module",
"modulepreload",
"template-module",
"template-worker",
"template",
"text/css",
"text/ecmascript",
"text/html",
"text/javascript",
"text/markdown",
"text/ng-template",
"text/plain",
"text/template",
"text/x-dust",
"text/x-dustjs",
"text/x-eco-template",
"text/x-eco",
"text/x-handlebars-template",
"text/x-handlebars",
"text/x-jade-template",
"text/x-jade",
"text/x-less",
"text/x-lodash-template",
"text/x-lodash",
"text/x-markdown",
"text/x-mustache-template",
"text/x-mustache",
"text/x-pug-template",
"text/x-pug",
"text/x-sass",
"text/x-scss",
"text/x-stylus",
"text/x-template",
"text/x-underscore-template",
"text/x-underscore",
"text/x-yaml",
"text/xml",
"worker-module",
"worker",
],
quoteCharacter: '"',
removeAttributeQuotes: true,
removeComments: true,
ignoreCustomComments: [/^\s*#/, /^\s*\[/, /^\s*\]/, /^\s*!/, /^\s*\//],
removeScriptTypeAttributes: true,
removeStyleLinkTypeAttributes: true,
removeTagWhitespace: false,
sortAttributes: true,
sortClassName: true,
trimCustomFragments: true,
useShortDoctype: false,
noNewlinesBeforeTagClose: true,
quoteCharacter: '"',
} satisfies HTML;

0 comments on commit 95898ec

Please sign in to comment.