mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
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
18 lines
266 B
JavaScript
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',
|
|
},
|
|
};
|