/* global require, module */

var EmberApp = require('ember-cli/lib/broccoli/ember-app');
var htmlmin = require('broccoli-htmlmin');

var app = new EmberApp({
  storeConfigInMeta: false
});

// Use `app.import` to add additional libraries to the generated
// output files.
//
// If you need to use different assets in different
// environments, specify an object as the first parameter. That
// object's keys should be the environment name and the values
// should be the asset to use in that environment.
//
// If the library that you are including contains AMD or ES6
// modules that you would like to import into your application
// please specify an object with the list of modules as keys
// along with the exports of each module as its value.

app.import('bower_components/animate.css/animate.css');
app.import('vendor/scripts/jquery.drawPieChart.js');

var tree = app.toTree();

options = {
    quotes: true
};
tree = htmlmin(tree, options);

module.exports = tree;

/* global require, module */

var EmberApp = require('ember-cli/lib/broccoli/ember-app');
var htmlmin = require('broccoli-htmlmin');

var app = new EmberApp({
  storeConfigInMeta: false
});

// Use `app.import` to add additional libraries to the generated
// output files.
//
// If you need to use different assets in different
// environments, specify an object as the first parameter. That
// object's keys should be the environment name and the values
// should be the asset to use in that environment.
//
// If the library that you are including contains AMD or ES6
// modules that you would like to import into your application
// please specify an object with the list of modules as keys
// along with the exports of each module as its value.

app.import('bower_components/animate.css/animate.css');
app.import('vendor/scripts/jquery.drawPieChart.js');

var index = app.legacyFilesToAppend.indexOf('bower_components/handlebars/handlebars.runtime.js');
if(index) {
    app.legacyFilesToAppend[index] = 'bower_components/handlebars/handlebars.js';
}

var tree = app.toTree();

options = {
    quotes: true
};
tree = htmlmin(tree, options);

module.exports = tree;

Use handlebars.js instead of runtime
Use handlebars.js instead of runtime

Due to a whacky bug with handlebars minified version, use full stuff.

This is 100kb greater. Have to fix this when they fix this issue
