mirror of
https://github.com/ritz078/transform.git
synced 2026-11-21 00:32:56 +03:00
* HTML to Pug converter (#127) * feat(pug): add HTML to pug converter * fix(pug): added package details * feat(analyze): added webpack bundle analyzer * fix(rust): handle special characters and duplicate keys (#131) * remove duplicate google tag manager (#122) * Update _app.tsx (#124) * docs: add timneutkens as a contributor (#125) * docs: update README.md * docs: update .all-contributorsrc * Upgrade Next.js to 9 (#126) * Upgrade Next.js to 9 * Add back engines key * Add globalObject Brings in suggestion from https://github.com/zeit/next.js/issues/7873#issuecomment-512795482 * Add temporary fix for window issue * fix(font): add fallback font for non mac browsers (#130) closes #129 * fix(rust): handle special characters and duplicate keys closes #97 * fix(rust): handle special chars closes #97, closes #95, closes #89, closes #62 * chore(rust): remove settings * feat(kotlin): added JSON to kotlin and json schema * fixes * fixes * fixes * fixes * fixes * added favicon * social media tags
19 lines
648 B
Diff
19 lines
648 B
Diff
diff --git a/node_modules/html2pug/src/index.js b/node_modules/html2pug/src/index.js
|
|
index 57a6b6a..d8a43c7 100644
|
|
--- a/node_modules/html2pug/src/index.js
|
|
+++ b/node_modules/html2pug/src/index.js
|
|
@@ -1,4 +1,3 @@
|
|
-const { minify } = require('html-minifier')
|
|
const { parse, parseFragment } = require('parse5')
|
|
const Pugify = require('./parser')
|
|
|
|
@@ -17,7 +16,7 @@ const defaultOptions = {
|
|
preserveLineBreaks: true,
|
|
}
|
|
|
|
-module.exports = (sourceHtml, options = {}) => {
|
|
+module.exports = (sourceHtml,minify, options = {}) => {
|
|
// Minify source HTML
|
|
const opts = { ...defaultOptions, ...options }
|
|
const html = minify(sourceHtml, opts)
|