Configuration - ramybenaroya/ember-index GitHub Wiki
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 contentincludeInOutput
(Boolean) - Should the content be included in the output file (e.g.dist/index.jsp
)includeInIndexHtml
- content be included indist/index.html