prember-beautify
This Ember addon allows you beautify pre-rendered HTML files by prember has no opinions about how you generate the list of URLs.
Quick Start
Add these packages to your app:
ember install ember-cli-fastbootember install premberember install prember-beautifyember build --environment=production
When you do ember build --environment=production
, your built app will include fastboot-rendered HTML files and they will be beautified with js-beautify.
/index.html
/about/index.html
/contact/index.html
Explanation
Options
You pass options to prember-beautify
by setting them in ember-cli-build.js
:
// In ember-cli-build.js
let app = new EmberApp(defaults, {
'prember-beautify': {
'indent_size': 2,
'unformatted' : [],
}
});
The supported options
enabled
: defaults toenvironment === 'production'
so thatprember
only runs during production builds.- any html option mentioned in the js-beautify library.