4 ms·
What about a web server that does the build step automatically, with no configuration required? Something like webpack-dev-server, but usable both in productio
by stefano 9y ago
What about a web server that does the build step automatically, with no configuration required?
Something like webpack-dev-server, but usable both in production and development.
To deploy, drop your typescript/html/css files under /srv/www/ and your web server will take care of everything.
- krapp 9y agoIf you already have html/css files, then "dropping them under /src/www" will already just work - that's how servers have worked since time immemorial, no "build step" required. But compiling isn't what a web server does, and it seems like having the server automatically do what a developer is going to do anyway when they push to production, and likely not very often, isn't a significant gain in efficiency. The point of having a separate build chain for these types is that you're emitting what are meant to be static resources anyway.