Skip to content

Commit

Permalink
Add svg as a default file extension
Browse files Browse the repository at this point in the history
[Modern browsers][caniuse] now support `svg` as a
valid [`background-image` value][background].

We should support this out of the box, without additional configuration.

[caniuse]: http://caniuse.com/#feat=svg-css
[background]: https://css-tricks.com/using-svg/
  • Loading branch information
seanpdoyle committed Nov 9, 2015
1 parent 30b410a commit 5355fb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/asset-rev.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function AssetRev(inputTree, options) {
this.assetMap = {};
this.inputTree = inputTree;
this.customHash = options.customHash;
this.extensions = options.extensions || ['js', 'css', 'png', 'jpg', 'gif', 'map'];
this.extensions = options.extensions || ['js', 'css', 'png', 'jpg', 'gif', 'map', 'svg'];
this.replaceExtensions = options.replaceExtensions || ['html', 'css', 'js'];
this.exclude = options.exclude || [];
this.fingerprintAssetMap = options.fingerprintAssetMap || false;
Expand Down

0 comments on commit 5355fb7

Please sign in to comment.