Skip to content

Instantly share code, notes, and snippets.

@kieran
Created July 12, 2014 20:41
Show Gist options
  • Save kieran/9f1fc386f2875bff0113 to your computer and use it in GitHub Desktop.
Save kieran/9f1fc386f2875bff0113 to your computer and use it in GitHub Desktop.
/* global require, module */
var EmberApp = require('ember-cli/lib/broccoli/ember-app');
var filterEmberScript = require('broccoli-ember-script');
var app = new EmberApp({
hinting: false,
name: require('./package.json').name,
minifyCSS: {
enabled: true,
options: {}
},
fingerprint: {
enabled: true,
prepend: 'https://d24mvc0u9m2a15.cloudfront.net/'
},
getEnvJSON: require('./config/environment')
});
// var compileSass = require('broccoli-sass');
// var appCss = compileSass(sourceTrees, 'myapp/app.scss', 'assets/app.css');
app.import('vendor/moment/moment.js');
app.import('vendor/underscore/underscore.js');
app.import('vendor/pace/pace.js');
app.import('vendor/pace/themes/blue/pace-theme-minimal.css');
// 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.
tree = app.toTree();
tree = filterEmberScript(tree, {bare: true});
module.exports = tree;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment