Skip to content
Ramy Ben Aroya edited this page May 21, 2017 · 7 revisions

The configuration for this addon is passed via EmberApp instantiation.

// Brocfile.js
var app = new EmberApp({
    'ember-index': {
        // ember-index options go here
    }
});

output (String)

The file name of the duplicated of 'dist/index`.

// Brocfile.js
var app = new EmberApp({
    'ember-index': {
        output: 'index.jsp'
    }
});

This code will output 'dist/index.jsp'.
If falsy, no duplication will be made.

destDir (String). Default: '.'

The file location of the duplicated of 'dist/index`.

// Brocfile.js
var app = new EmberApp({
    'ember-index': {
        output: 'index.jsp',
        destDir: 'export',
    }
});

This code will output 'dist/export/index.jsp'.

content (Array|Object)

This object describes the dynamic content to inject. It can also be an array of these objects for multiple injection. The content object properties are:

  • key (String) (mandatory for multiple injection only)
  • file (String) - File name which contains the content
  • includeInOutput (Boolean) - Should the content be included in the output file (e.g. dist/index.jsp)
  • includeInIndexHtml - content be included in dist/index.html

See some examples

Clone this wiki locally