makoto / blockparty

NO BLOCK NO PARTY
MIT License
164 stars 41 forks source link

Reduce the size of js asset #5

Closed makoto closed 7 years ago

makoto commented 8 years ago

Currently the js files are over 4.0 MB which makes building process quite slow.

minoue@macminoue:~/work/blockparty (deploy)$ truffle build
Running `webpack`...
Hash: 33b733aa09e5fda8ec63
Version: webpack 1.13.1
Time: 6055ms
                     Asset     Size  Chunks             Chunk Names
                    app.js  3.78 MB       0  [emitted]  main
                app.js.map  4.58 MB       0  [emitted]  main
                index.html  1.07 kB          [emitted]  
images/nightclub-white.png  24.4 kB          [emitted]  
          images/.DS_Store  6.15 kB          [emitted]  
    + 992 hidden modules
makoto commented 7 years ago

webpack -p option reduces down to 1.5 MB