Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
MeFoDy committed Feb 7, 2024
1 parent 7963b58 commit 33c6b1e
Show file tree
Hide file tree
Showing 3 changed files with 2,592 additions and 3,685 deletions.
9 changes: 3 additions & 6 deletions _11ty/transforms/xmlmin.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
const minifyXML = require('minify-xml').minify;

function xmlmin(content, outputPath) {
async function xmlmin(content, outputPath) {
if (outputPath && outputPath.endsWith('.xml')) {
const result = minifyXML(content, {

});
const { minify: minifyXML } = await import('minify-xml');
const result = minifyXML(content, {});
return result;
}
return content;
Expand Down
Loading

0 comments on commit 33c6b1e

Please sign in to comment.