Fingerprint filenames

This commit is contained in:
Vincent Fiduccia 2015-09-25 13:23:58 -07:00
parent 698dcde6e4
commit 2003cd9b57
1 changed files with 16 additions and 20 deletions

View File

@ -1,40 +1,36 @@
/* global require, module */
var EmberApp = require('ember-cli/lib/broccoli/ember-app');
var util = require('util');
var env = EmberApp.env();
console.log("Environment:",env);
module.exports = function(defaults) {
// Pull in a few useful environment settings for index.html to use
var appConfig = require('./config/environment')(env).APP;
var inline = {};
['version','appName','baseAssets'].forEach(function(key) {
var val = appConfig[key];
if ( val )
{
inline[key] = {content: val};
}
});
var app = new EmberApp(defaults, {
storeConfigInMeta: false,
inlineContent: inline,
// Disable fingerprinting..
fingerprint: {
extensions: [],
exclude: ['fontawesome'],
extensions: ['js','css','png','jpg','gif','svg','map','woff','woff2','ttf'],
},
/*
gzip: {
enabled: true,
keepUncompressed: true
},
*/
sourcemaps: {
enabled: true,
extensions: ['js']
},
});
// Pull in a few useful environment settings for index.html to use
var appConfig = require('./config/environment')(app.env).APP;
app.options.inlineContent = {};
['version','appName','baseAssets'].forEach(function(key) {
var val = appConfig[key];
if ( val )
{
app.options.inlineContent[key] = {content: val};
}
});
// Use `app.import` to add additional libraries to the generated
// output files.
//