@ng-doc/builder 18.0.3 → 18.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,22 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.minifyHtml = minifyHtml;
4
- const html_minifier_1 = require("html-minifier");
4
+ const utils_1 = require("./utils");
5
5
  /**
6
6
  *
7
7
  * @param html
8
8
  */
9
9
  function minifyHtml(html) {
10
- const minifyHTML = html_minifier_1.minify;
11
- return minifyHTML(html, {
12
- collapseWhitespace: true,
13
- removeComments: true,
14
- decodeEntities: true,
15
- html5: true,
16
- removeOptionalTags: true,
17
- removeRedundantAttributes: true,
18
- trimCustomFragments: true,
19
- preserveLineBreaks: true,
20
- });
10
+ return utils_1.UTILS.minify(html);
21
11
  }
22
12
  //# sourceMappingURL=minify-html.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"minify-html.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/minify-html.ts"],"names":[],"mappings":";;AAMA,gCAaC;AAnBD,iDAAuC;AAEvC;;;GAGG;AACH,SAAgB,UAAU,CAAC,IAAY;IACrC,MAAM,UAAU,GAAG,sBAAM,CAAC;IAE1B,OAAO,UAAU,CAAC,IAAI,EAAE;QACtB,kBAAkB,EAAE,IAAI;QACxB,cAAc,EAAE,IAAI;QACpB,cAAc,EAAE,IAAI;QACpB,KAAK,EAAE,IAAI;QACX,kBAAkB,EAAE,IAAI;QACxB,yBAAyB,EAAE,IAAI;QAC/B,mBAAmB,EAAE,IAAI;QACzB,kBAAkB,EAAE,IAAI;KACzB,CAAC,CAAC;AACL,CAAC"}
1
+ {"version":3,"file":"minify-html.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/minify-html.ts"],"names":[],"mappings":";;AAMA,gCAEC;AARD,mCAAgC;AAEhC;;;GAGG;AACH,SAAgB,UAAU,CAAC,IAAY;IACrC,OAAO,aAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAC5B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ng-doc/builder",
3
- "version": "18.0.3",
3
+ "version": "18.0.4",
4
4
  "type": "commonjs",
5
5
  "builders": "./builders.json",
6
6
  "schematics": "./schematics/collection.json",
@@ -11,8 +11,8 @@
11
11
  ]
12
12
  },
13
13
  "dependencies": {
14
- "@ng-doc/core": "18.0.3",
15
- "@ng-doc/utils": "18.0.3",
14
+ "@ng-doc/core": "18.0.4",
15
+ "@ng-doc/utils": "18.0.4",
16
16
  "@angular-devkit/architect": ">=0.1801.0",
17
17
  "@angular-devkit/build-angular": ">=18.1.0",
18
18
  "chokidar": "3.5.3",
@@ -35,7 +35,6 @@
35
35
  "tslib": "^2.6.2",
36
36
  "ng-morph": "4.0.3",
37
37
  "parsimmon": "^1.18.1",
38
- "html-minifier": "4.0.0",
39
38
  "@parcel/watcher": "2.3.0"
40
39
  },
41
40
  "publishConfig": {