Beautify Plugin for DocPad
Beautify HTML, CSS and JavaScript files from DocPad using JS Beautify.
Install
docpad install beautify
Usage
Any HTML, CSS or JavaScript file that is processed in src/documents
will be beautified.
Configure
Defaults
The default configuration for this plugin is the equivalant of adding the following Beautify options to your DocPad configuration file:
plugins:uglify:# Enable HTML beautification.html: true# Enable CSS beautification.css: true# Enable JavaScript beautification.js: true# The Beautify options at http://github.com/einars/js-beautify#optionsindent_size: 4indent_char: " "indent_level: 0indent_with_tabs: falsepreserve_newlines: truemax_preserve_newlines: 10jslint_happy: falsebrace_style: "collapse"keep_array_indentation: falsekeep_function_indentation: falsespace_before_conditional: truebreak_chained_methods: falseeval_code: falseunescape_strings: falsewrap_line_length: 0
Template Configuration
It is possible to override the default configuration on a per-template basis:
---
History
Discover the change history by heading on over to the HISTORY.md
file.
Contribute
Discover how you can contribute by heading on over to the CONTRIBUTING.md
file.
Backers
Maintainers
These amazing people are maintaining this project:
- Rob Loach (https://github.com/robloach)
Sponsors
No sponsors yet! Will you be the first?
Contributors
These amazing people have contributed code to this project:
License
Licensed under the incredibly permissive MIT license
Copyright © Rob Loach (http://github.com/robloach)