Conversation
|
This is good first step, but I'd make this a script and log some output after finishing the build. Can take a look at this! |
|
Just took a look, is there a reason we aren't using https://github.com/chrisbateman/webpack-visualizer? Since it's a webpack plugin, instead of having to upload a huge JSON file somewhere it generates a visualization |
|
Well, I'm always looking for ways to avoid thrusting yet another dependency on users, and it's not the actually the case that you upload anything (since the code runs client-side) but mainly it's that it doesn't give the level of insight that the Webpack analyzer does. |
|
I will say that I've had to setup the project multiple times in the last few days and the |
|
Fair enough, I'm convinced! I'll add a bit of documentation about this feature in the commands.md and merge it in! |
|
Alright, I think this is ready to merge – I'd appreciate if somebody could try running it on Windows (we should highlight our amazing OS compatibility in the README btw @oliverturner) but I'm 99% sure it works. I added documentation, gave it nicer output and instead of opening the link in the default browser (which I think only works on OSX) I output the link like so: I'm aware the keyboard-shortcut-trick only works on OSX in the default terminal, but it's CMD-Click in iTerm so that'll work too and on Windows I'm pretty sure people will figure it out themselves |
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |

Not as elegant as it might be, but generates a
stats.jsonfrom a productionised build and opens a browser to the webpack analyser ready for the user to upload.Needs some instructions output to the terminal on completion...