Skip to content

Commit

Permalink
concat json,html for new rev-only IGNORE list
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeed committed May 5, 2017
1 parent 1088152 commit 766f882
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const sortKeys = require('sort-keys');

const SEP = '/';
let MANIFEST, FILEPATH;
const IGNORE = ['.png', '.jpg', '.jpeg', '.svg', '.gif', '.woff', '.ttf', '.eot', '.ico', '.json'];
const IGNORE = ['.png', '.jpg', '.jpeg', '.svg', '.gif', '.woff', '.ttf', '.eot', '.ico'];

function fixPath(str) {
return str.replace(/\\+/g, SEP);
Expand All @@ -18,7 +18,7 @@ module.exports = function (fly, utils) {
*/
fly.plugin('rev', {}, function * (file, opts) {
// overwrite default opt values
opts = Object.assign({ignores: IGNORE}, opts);
opts = Object.assign({ignores: IGNORE.concat('.html', '.json')}, opts);

// bypass dirs or empty files
if (!file.data) {
Expand Down

0 comments on commit 766f882

Please sign in to comment.