dgp1130 / rules_prerender

A Bazel rule set for prerending HTML pages.
13 stars 0 forks source link

Custom devserver implementation #12

Closed dgp1130 closed 1 year ago

dgp1130 commented 3 years ago

Currently we use concatjs_devserver() as the implementation of the web_resources_devserver(). This is nice to not have to write a devserver and because it is ibazel compatible and implements livereload out of the box.

However, with v3 moving this to @bazel/concatjs, which includes Karma rules and requires a dependency on rules_webtesting, this is a very heavyweight dependency that gets passed to user projects and which we only use a small portion of. Using a custom devserver would enable user workspaces to drop @bazel/concatjs and rules_webtesting.

dgp1130 commented 3 years ago

Happened upon live-server the other day, which has a PR open to add iBazel support. Maybe this could be used as an out of the box devserver?

dgp1130 commented 1 year ago

We're now using http-server for web_resources_devserver(). I'll need to look into live reload, but it should already be iBazel-compatible.