Skip to content

Commit

Permalink
Added support for js and css config in html files (#336)
Browse files Browse the repository at this point in the history
This simple change will be very useful if js-beautify maintainers accept my PR to support js and css options inclusion in html files:
beautifier/js-beautify#1025
  • Loading branch information
Dani Guardiola authored and victorporof committed Sep 9, 2016
1 parent 270faa5 commit 96af936
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 96af936

Please sign in to comment.