lundi 4 janvier 2016

Ember build not generating the right fingerprint

Anyone experience this before.

I have @include background(url("images/landing.jpg") top left no-repeat); in a scss file. This renders fine locally.

When I do: ember build --environment=staging

I inspect the dist files. It points to http://ift.tt/1RZbXT8 instead of http://ift.tt/1O5Lc9u

Note, cdn1 instead of cdn1-staging.

ember-cli-build.js has:

module.exports = function(defaults) {
  var env = EmberApp.env();
  var isProductionLikeBuild = ['production', 'staging'].indexOf(env) > -1;

  var app = new EmberApp(defaults, {
    // Add options here
    fingerprint: {
      enabled: isProductionLikeBuild,
      prepend: 'https://cdn1' + (env === 'staging' ? '-staging' : '') + 'http://.site-name.com/dist/team/'
    },
    sourcemaps: {
      enabled: !isProductionLikeBuild,
    },
    minifyCSS: { enabled: isProductionLikeBuild },
    minifyJS: { enabled: isProductionLikeBuild }
  });




Aucun commentaire:

Enregistrer un commentaire