Skip to content

Instantly share code, notes, and snippets.

@sandalsoft
Created June 12, 2014 01:46
Show Gist options
  • Save sandalsoft/dfa4c257e752586efbde to your computer and use it in GitHub Desktop.
Save sandalsoft/dfa4c257e752586efbde to your computer and use it in GitHub Desktop.
/* global require, module */
var EmberApp = require('ember-cli/lib/broccoli/ember-app');
var app = new EmberApp({
name: require('./package.json').name,
// for some large projects, you may want to uncomment this (for now)
es3Safe: true,
minifyCSS: {
enabled: true,
options: {}
},
getEnvJSON: require('./config/environment')
});
// 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('vendor/moment/moment.js');
// app.import('vendor/numeral/numeral.js');
app.import({
development: 'vendor/numeral/numeral.js',
production: 'vendor/numeral/min/numeral.min.js'
}, {
'numeral': [
'default'
]
});
app.import({
development: 'vendor/moment/moment.js',
production: 'vendor/moment/min/moment.min.js'
}, {
'moment': [
'default'
]
});
app.import({
development: 'vendor/ember-data/ember-data.js',
production: 'vendor/ember-data/ember-data.prod.js'
}, {
'ember-data': [
'default'
]
});
app.import('vendor/ic-ajax/dist/named-amd/main.js', {
'ic-ajax': [
'default',
'defineFixture',
'lookupFixture',
'raw',
'request',
]
});
module.exports = app.toTree();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment