Skip to content

Instantly share code, notes, and snippets.

@lrdiv
Created July 7, 2014 23:04
Show Gist options
  • Save lrdiv/ddb242abaadb65f6d783 to your computer and use it in GitHub Desktop.
Save lrdiv/ddb242abaadb65f6d783 to your computer and use it in GitHub Desktop.
Disable ember-cli asset fingerprinting in development
/* global require, module */
var EmberApp = require('ember-cli/lib/broccoli/ember-app');
var app = new EmberApp({
minifyCSS: {
enabled: true,
options: {}
},
fingerprint: {
enabled: true,
prepend: 'http://lrdivco.s3.amazonaws.com/'
},
getEnvJSON: require('./config/environment')
});
if (app.env === 'development') {
app.fingerprint.enabled = 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.
module.exports = app.toTree();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment