HTML beautifier for Prerender Ember apps using Fastboot at build time.
npm install 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.
Add these packages to your app:
``sh`
ember install ember-cli-fastboot
ember install prember
ember install prember-beautify
ember 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
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 to environment === 'production' so that prember` only runs during production builds.
- any html option mentioned in the js-beautify library.