Skip to content
This repository has been archived by the owner on Mar 22, 2023. It is now read-only.

Stats file size reported as 0bytes #17

Open
ijpiantanida opened this issue Apr 14, 2017 · 3 comments
Open

Stats file size reported as 0bytes #17

ijpiantanida opened this issue Apr 14, 2017 · 3 comments

Comments

@ijpiantanida
Copy link

Using version 0.6.0, all the stats files are reported as 0 bytes, even though they do have content and are created properly.

Running "webpack:build-server" (webpack) task
Version: webpack 2.4.1
                       Asset     Size  Chunks                    Chunk Names
js/server-frontend-bundle.js  2.79 MB       0  [emitted]  [big]  app
           stats-server.json  0 bytes          [emitted]

And in webpack.config

new StatsPlugin('stats-server.json', {
      chunkModules: true,
      exclude: [/node_modules[\\\/]react/]
})
@nezriffic
Copy link

I have exactly the same issue:

"stats-webpack-plugin": "^0.6.1"
"webpack": "^2.6.1"
"webpack-dev-server": "^2.4.5"
devServer: {
            stats: {
                chunkModules: true,
                cached: false,
                exclude: [/node_modules[\\\/]react(-router)?[\\\/]/]
            }
}
Hash: 49f15fcb8547a3a876ed                                                         
Version: webpack 2.6.1
Time: 592ms
        Asset     Size  Chunks                    Chunk Names
      main.js   1.6 MB       0             [big]  main
      stats.json  0 bytes          [emitted]         

nezriffic added a commit to nezriffic/stats-webpack-plugin that referenced this issue Jun 20, 2017
@nezriffic
Copy link

Added PR (result variable from line 23 never had a value assigned, resulting size method to always return 0).

@eranimo
Copy link

eranimo commented Mar 19, 2019

I also have this problem, but the files are also not written either.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants