Re:I don't want to do front-end anymore
by brainzap on Tuesday February 09, 2021 @05:26AM
(#26075830)
You can use Vue.js 2 without build system by just loading into the browser.
[ Parent
| on HN ]
Can confirm. I built 2 VueJS apps that are 100% static, and it was not a problem at all.
Re:I don't want to do front-end anymore
by iFreilicht on Tuesday February 09, 2021 @06:24PM
(#26083903)
A 100% static site doesn’t run any JS, right? What did you need Vue for, then?
Re:I don't want to do front-end anymore
by zimmund on Tuesday February 09, 2021 @10:22PM
(#26085416)
A static site may use JS, but doesn't require server-side logic (PHP, databases, or any other type of dynamic content). In this case OP implies that it doesn't even require a build (because you may create a static site through a build process -like Jekyll does, for example-).
Re:I don't want to do front-end anymore
by nicbou on Wednesday February 10, 2021 @02:48AM
(#26086576)
Static from the server perspective. It only serves files in a directory without any parsing or processing.
You can still do this with Vue 3! The CodePen embeds they use in their "Getting Started" docs are all still just loading in an external library and making use of it with vanilla JS.
Re:I don't want to do front-end anymore
by franga2000 on Tuesday February 09, 2021 @07:11AM
(#26076576)
Sure you can, but then the moment you want to use an external library with it, it's basically a coin flip whether they ship it in the correct format for that. If they don't, you have to import it - but you can only import from modules. So you modify your page to load your code as a module instead, but now you can't access the global state. So you refractor everything and realize, that your page takes a minute to load because each of those modules contains like a 100 dependencies and half of them overlap.
TL;DR: it's there, but it's really only usable in like 5% of scenarios