by hk__2 · 4y ago · 0 comments
> <link rel="stylesheet" href="https://unpkg.com/mvp.css">
That’s not a "pro tip"; that’s a very bad advice: you should always use versioned URLs. What if I find this project cool; add this URL in my HTML; and then the author changes things in ways I don’t like? It’ll break my website. If I used something like `https://unpkg.com/mvp/v2.3.45/mvp.css` I’d be sure it wouldn’t happen.
I use this framework a ton and it's great for things like building an API where you need an absolutely minimal frontend. For things like this I'm already writing minimal CSS, this just lets me slap a one liner in the head and make the frontend look marginally nicer. Issues like the version and semantics are not a concern because the "point" is to build the API and the frontend will get tossed (and yes I realize I can use Postman/Hoppscotch, i use those as well).
Fair point. I’ll update the site soon to explicitly use a version.
Thanks for pointing that out!
You can always just copy it yourself.
I'll take a basic tailwind install for this use any day. Not it's not minimal but it is reliable and straightforward for prototyping..