Why use webpack to start local dev-server?

Why can"t we just right-click to open the html page after executing the build command? Why start dev-server locally? Have been troubled for a long time

Feb.15,2022

in more build projects, static files after build cannot be opened directly by right-clicking html, such as scaffolding such as vue-cli3.

dev-server can help with better development, such as adding hot-loader. The configuration of
webpack can also better track code errors.

not at all. Even if you change the letter, you have to build it, right?


what's bothering you? why not? who says no? Of course, you can not enable dev-server ah!
but there is no hot update, tens of millions of lines of items have to change a letter build once to see the results, if you think this way of development is very pleasant, just do it!

Menu