Great read! I’m attempting to try and be strategic with my srcset logic, did you end up using 7ish screen media screen sizes with 7 images in the srcset? I’d love to see an example of your html.
Thanks for this.
For all the ways Vue makes things easier I’m often surprised when something like “how to set your app’s version” turns into a lot of digging around.
Thanks for saving me from having to do too much digging of my own.
I’m definitely not interested in going back to C or C++! But look closer at WebAssembly. It allows other people (the people building frameworks) to create platforms we can use in our high-level languages.
For example, if you use Blazor you’ll be programming in C#, complete with managed services like a garbage collector, and…
Thank you very much for this, but —
What if you just want to expose the version, without exposing everything else in the package.json? It looks like the solution you propose will have the effect of exposing *everything* in package.json to any client … might that not provide enough information to make your app the target of a…
Update: YES, exposing package.json to the client, as both your and my previous solutions did, is a BAD IDEA. I’m not just being over-paranoid here. From https://stackoverflow.com/questions/9153571/is-there-a-way-to-get-version-from-package-json-in-nodejs-code:
Doing this with Browserify has security implications.