JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 297
  • Score
    100M100P100Q98273F
  • License ISC

Taglib to enable browser page refresh in response to file modifications on the server

Package Exports

  • browser-refresh-taglib/marko-taglib.json
  • browser-refresh-taglib/marko.json
  • browser-refresh-taglib/refresh-tag

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (browser-refresh-taglib) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

browser-refresh-taglib

Taglib to enable browser page refresh in response to file modifications on the server and when the processed was using the browser-refresh process launcher.

Installation

npm install browser-refresh-taglib --save

Usage

<!doctype html>
<html lang="en">
    <head>
        ...
    </head>
    <body>
        ...
        
        <browser-refresh enabled="true"/>
    </body>
</html>

If the process has been launched using browser-refresh then the output of the tag will be similar to the following:

<script src="http://localhost:51066/browser-refresh.js"></script>

If the process was not launched using browser-refresh then the tag will not produce any output. That is, it is safe for the tag to be used in production.

Maintainers

Contribute

Pull requests, bug reports and feature requests welcome.

License

ISC