Files
react/grunt/config/compare_size.js
Benjamin Woodruff c089eece50 Switch to using comma-dangle: always-multiline
This is a machine-generated codemod, but it's pretty safe since it was
generated by hooking into eslint's own report.

A few files had to be touched up by hand because there were existing
formatting issues with nested arrays/objects:

src/shared/utils/__tests__/OrderedMap-test.js
src/shared/utils/__tests__/Transaction-test.js
src/shared/utils/__tests__/traverseAllChildren-test.js
src/isomorphic/children/__tests__/ReactChildren-test.js
2015-06-02 16:57:26 -07:00

18 lines
266 B
JavaScript

'use strict';
var gzip = require('gzip-js');
module.exports = {
files: [
'build/*.js',
],
options: {
compress: {
gz: function(contents) {
return gzip.zip(contents, {}).length;
},
},
cache: '.grunt/sizecache.json',
},
};