mirror of https://github.com/rancher/ui.git
Fingerprint filenames
This commit is contained in:
parent
698dcde6e4
commit
2003cd9b57
|
|
@ -1,40 +1,36 @@
|
||||||
/* global require, module */
|
/* global require, module */
|
||||||
var EmberApp = require('ember-cli/lib/broccoli/ember-app');
|
var EmberApp = require('ember-cli/lib/broccoli/ember-app');
|
||||||
var util = require('util');
|
var util = require('util');
|
||||||
|
var env = EmberApp.env();
|
||||||
|
console.log("Environment:",env);
|
||||||
|
|
||||||
module.exports = function(defaults) {
|
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, {
|
var app = new EmberApp(defaults, {
|
||||||
storeConfigInMeta: false,
|
storeConfigInMeta: false,
|
||||||
|
inlineContent: inline,
|
||||||
|
|
||||||
// Disable fingerprinting..
|
|
||||||
fingerprint: {
|
fingerprint: {
|
||||||
extensions: [],
|
exclude: ['fontawesome'],
|
||||||
|
extensions: ['js','css','png','jpg','gif','svg','map','woff','woff2','ttf'],
|
||||||
},
|
},
|
||||||
|
|
||||||
/*
|
|
||||||
gzip: {
|
|
||||||
enabled: true,
|
|
||||||
keepUncompressed: true
|
|
||||||
},
|
|
||||||
*/
|
|
||||||
|
|
||||||
sourcemaps: {
|
sourcemaps: {
|
||||||
enabled: true,
|
enabled: true,
|
||||||
extensions: ['js']
|
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
|
// Use `app.import` to add additional libraries to the generated
|
||||||
// output files.
|
// output files.
|
||||||
//
|
//
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue