Re:LiveView Is Not a Zero-JS Framework, It's a Zero-Boring-J...
by tylrbrkr on Tuesday June 18, 2024 @08:08AM
(#40716821)
Yes, you can build fully server rendered web apps with Phoenix. You'd need HTML templates for that though, so you shouldn't use the --no-html option.
--no-webpack is deprecated as Phoenix uses esbuild now but see the docs: "--no-esbuild - do not include esbuild dependencies and assets. We do not recommend setting this option, unless for API only applications, as doing so requires you to manually add and track JavaScript dependencies"
Re:LiveView Is Not a Zero-JS Framework, It's a Zero-Boring-J...
by johnisgood on Tuesday June 18, 2024 @09:20AM
(#40717522)
If I intend to create an e-commerce website without any JavaScript, may I use "--no-esbuild" given that I do not want to add any JavaScript dependencies? I am trying to replace the e-commerce website I have built using PHP & HTML & CSS (without any JavaScript at all).
I was even considering "--no-assets" and add Tailwind (or whatever else) manually.
Re:LiveView Is Not a Zero-JS Framework, It's a Zero-Boring-J...
by johnisgood on Wednesday June 19, 2024 @10:03AM
(#40728413)
I hope a core developer of Phoenix could help me out here. :/
Would something like:
work? With all the JavaScript removed if it still creates any.[1][1] I think it does create a .js file at the very least but that is just a configuration file.