0.1.0 • Published 6 years ago

file-change-announcer v0.1.0

Weekly downloads
4
License
ISC
Repository
github
Last release
6 years ago

file-change-announcer

This package can be used to autoreload html pages with minimal overhead.

starting

file-change-announcer

example file

<!DOCTYPE html>
<html lang="en">

    <head>
        <meta charset="UTF-8">
        <title>some page</title>
        <link rel="stylesheet" href="./some-relative-file.css">

        <!-- loading the reloader -->
        <script src="localhost:40255"></script>
        <script>
            /* subscribing to some file */
            autoreloader.subscribe(['C:/some/path/to/some-relative-file.css'])
        </script>
    </head>

    <body>

    </body>

</html>

Now everytime C:/some/path/to/some-relative-file.css changes the webpage will be reloaded.

GYP issue while installing

This issue comes from the used Websocket package, see this explanation for more information.

0.1.0

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago