0.4.0 • Published 9 years ago

laravel-elixir-fingerprint v0.4.0

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

Laravel Elixir Fingerprint Build Status

Install

$ npm install laravel-elixir-fingerprint --save-dev

Example

var elixir = require('laravel-elixir');

require('laravel-elixir-fingerprint');

elixir(function (mix) {
    mix.fingerprint(
        'public/build/css/*.css', 
        'public/build/css/'
    );
});

Our rev-manifest.json file:

{
  "fonts/fontello.eot": "fonts/fontello-ee7f7979.eot",
  "fonts/fontello.svg": "fonts/fontello-9cc6a21a.svg",
  "fonts/fontello.ttf": "fonts/fontello-13276407.ttf",
  "fonts/fontello.woff": "fonts/fontello-e25c919d.woff"
}

CSS Before Fingerprinting:

@font-face {
  font-family: 'fontello';
  src: url("fonts/fontello.eot");
  src: url("fonts/fontello.eot") format('embedded-opentype'),
       url("fonts/fontello.woff") format('woff'),
       url("fonts/fontello.ttf") format('truetype'),
       url("fonts/fontello.svg") format('svg');
  font-weight: normal;
  font-style: normal;
}

CSS After Fingerprinting:

@font-face {
  font-family: 'fontello';
  src: url("/build/fonts/fontello-ee7f7979.eot");
  src: url("/build/fonts/fontello-ee7f7979.eot") format('embedded-opentype'),
       url("/build/fonts/fontello-e25c919d.woff") format('woff'),
       url("/build/fonts/fontello-13276407.ttf") format('truetype'),
       url("/build/fonts/fontello-9cc6a21a.svg") format('svg');
  font-weight: normal;
  font-style: normal;
}

As you can see, the after shows the font files replaced with the versioned ones in the rev-manifest.json file.

Full Documentation

https://github.com/vincentmac/gulp-fingerprint

License

MIT © Vincent Mac

0.4.0

9 years ago

0.3.3

9 years ago

0.3.22

9 years ago

0.3.21

9 years ago

0.3.2

9 years ago