I disagree. These people are just specialists in web dev. The knowledge within web development is diverse and actually easy to learn but it does not make you a generalist.
You are a generalist if you have knowledge about different fields within software engineering.
So for example, if you’re good at:
machine learning and writing compilers,
doing operating system development,
front end development with react,
OpenGL/Vulcan development with c++,
Database development.
then you are a generalist.
Generalists are truly rare. specialists in compiler development are also rare. Specialists in web development are abundant. Practically every show HN is some sort of website.