prember-beautify

0.1.2 • Public • Published

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-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

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 to environment === 'production' so that prember only runs during production builds.
  • any html option mentioned in the js-beautify library.

Package Sidebar

Install

npm i prember-beautify

Weekly Downloads

0

Version

0.1.2

License

MIT

Last publish

Collaborators

  • basz