Permalink
Browse files

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:
beautify-web/js-beautify#1025
  • Loading branch information...
1 parent 270faa5 commit 96af9360cf63aa4329f0975834131ec9612bf98c @DaniGuardiola DaniGuardiola committed with Sep 9, 2016
Showing with 2 additions and 0 deletions.
  1. +2 −0 scripts/run.js
View
@@ -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)) {

0 comments on commit 96af936

Please sign in to comment.