Skip to content

server side html import shim

Compare
Choose a tag to compare
@RuedigerMoeller RuedigerMoeller released this 27 Jul 19:26
· 888 commits to trunk since this release

Removed previous webapp resourcepath machinery in favour of a standards compliant html import based shim

  • breaking change for webapps need to use html import in order to work (tutorial/documentation to follow shortly)
  • kontraktor http4k (undertow based) now supports dynamic inline of html imports in production mode.
  • in addition all scripts are minified dynamically (also inlines scripts like <script>var myAwesomeJS=maybe;</script>)
  • corrects links of import resources similar to polymer's vulcanize tool synamically (actually diffed with vulcanize results to ensure correctnes)
  • for non polymer/webcomponent apps a 5 liner shim for imports is required (see https://github.com/RuedigerMoeller/kontraktor-spa-example and https://github.com/RuedigerMoeller/kontraktor-polymer-example)