From 96af9360cf63aa4329f0975834131ec9612bf98c Mon Sep 17 00:00:00 2001 From: Dani Guardiola Date: Fri, 9 Sep 2016 07:44:23 +0200 Subject: [PATCH] Added support for js and css config in html files (#336) This simple change will be very useful if js-beautify maintainers accept my PR to support js and css options inclusion in html files: https://github.com/beautify-web/js-beautify/pull/1025 --- scripts/run.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/run.js b/scripts/run.js index 3f1d8960..453c0073 100644 --- a/scripts/run.js +++ b/scripts/run.js @@ -67,6 +67,8 @@ fs.readFile(tempPath, "utf8", function(err, data) { console.log(css_beautify(data, options["css"])); } else if (isHTML(filePath, data)) { + options["html"].js = options["js"]; + options["html"].css = options["css"]; console.log(html_beautify(data, options["html"])); } else if (isJS(filePath, data)) {