using lws for react front-end webapp builds? #185
-
Hiya! I've been using While working on things for it, I started to wonder about making a fork that used react to clean up and organize the codebase, and saw that the readme for
I'm confused as to where to learn more about using local-web-server for building & developing front-end web applications more generally. As it stands, the README is the only location react is mentioned throughout the entire project. I realize that the question of implementing a project build might be outside the scope of Any insight is appreciated. React's articles on adding it to an existing project want people to use Vite, which would likely replace |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can host any website using local-web-server, whether using plain HTML, CSS and JS or a highly-opinionated DSL like React.. Just keep in mind local-web-server is just a web server, not a build tool.. You need to build your React site yourself using your regular tools, then the final output (the compiled html, css, js etc resources) can be hosted using local-web-server.. If your react app is a SPA then you'll probably need to use |
Beta Was this translation helpful? Give feedback.
You can host any website using local-web-server, whether using plain HTML, CSS and JS or a highly-opinionated DSL like React.. Just keep in mind local-web-server is just a web server, not a build tool.. You need to build your React site yourself using your regular tools, then the final output (the compiled html, css, js etc resources) can be hosted using local-web-server.. If your react app is a SPA then you'll probably need to use
ws --spa
..