Skip to content

Commit

Permalink
add file size
Browse files Browse the repository at this point in the history
  • Loading branch information
plantain-00 committed Jul 4, 2017
1 parent d9c4924 commit a035b1e
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 5 deletions.
7 changes: 7 additions & 0 deletions demo/file-size.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"angularIndexBundleJs": "764 kB",
"reactIndexBundleJs": "163 kB",
"vueIndexBundleJs": "97.1 kB",
"indexBundleCss": "38.9 kB",
"treeIconPng": "636 B"
}
3 changes: 2 additions & 1 deletion demo/rev-static.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@ module.exports = {
sha: 256,
customNewFileName: (filePath, fileString, md5String, baseName, extensionName) => baseName + '-' + md5String + extensionName,
noOutputFiles: [],
base: 'demo'
base: 'demo',
fileSize: 'demo/file-size.json'
}
12 changes: 9 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"less": "2.7.2",
"react": "15.6.1",
"react-dom": "15.6.1",
"rev-static": "2.6.0",
"rev-static": "2.7.1",
"rimraf": "2.6.1",
"rxjs": "5.4.1",
"standard": "10.0.2",
Expand Down

0 comments on commit a035b1e

Please sign in to comment.