5 ms·
I see, it has a "dev-server.js". Why is that not a package? We have super simple functionality like "left pad" but not complex dev servers as a package? What if
by DiThi 9y ago
I see, it has a "dev-server.js". Why is that not a package? We have super simple functionality like "left pad" but not complex dev servers as a package? What if it breaks? Do I need to update the template?
- sciolistse 9y agoThere are dev server packages for webpack (https://webpack.github.io/docs/webpack-dev-server.html https://webpack.github.io/docs/webpack-dev-server.html). I can't tell you why it's not used in this specific project.
- andrew_ 9y agoIt should be noted that those are the "old and busted" docs. https://webpack.js.org/configuration/dev-server/#devserver https://webpack.js.org/configuration/dev-server/#devserver is the place to visit these days.
- sciolistse 9y agomy bad, i make that mistake all the time. doesn't help that searching for webpack documentation always turns up the bad results first! Thanks for the correction.
- deleted 9y ago[deleted]
- Klathmon 9y agoThey do have packages for that, several, but they all don't work in all cases. Some tend to be fairly custom, so they do it themselves. Ours for example serves several apps in the same repo, with both HTTPS and HTTP, including some hot reload middleware and integration with our CDN for some live assets in development. As for "why we have left-pad but not this", anyone can make a package. If you want to make a `uselessjs` package that does literally nothing, you can.