1 | ;
|
2 |
|
3 | Object.defineProperty(exports, "__esModule", {
|
4 | value: true
|
5 | });
|
6 | exports.default = void 0;
|
7 |
|
8 | var _htmlMinifierTerser = require("html-minifier-terser");
|
9 |
|
10 | var _default = options => async function process(html) {
|
11 | try {
|
12 | // eslint-disable-next-line no-param-reassign
|
13 | html = await (0, _htmlMinifierTerser.minify)(html, options.minimize);
|
14 | } catch (error) {
|
15 | options.errors.push(error);
|
16 | }
|
17 |
|
18 | return html;
|
19 | };
|
20 |
|
21 | exports.default = _default; |
\ | No newline at end of file |