lingon-livereload
Advanced tools
Comparing version 0.3.0 to 0.3.1
{ | ||
"name": "lingon-livereload", | ||
"description": "Livereload plugin for Lingon", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"homepage": "https://github.com/javoire/lingon-livereload", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -6,3 +6,3 @@ # Lingon Livereload | ||
This is a livereload plugin for [lingon](https://github.com/jpettersson/lingon). Based on [node-livereload](https://github.com/mnmly/node-livereload). | ||
This is a livereload plugin for [lingon](https://github.com/jpettersson/lingon). Based on [node-livereload](https://github.com/napcs/node-livereload). | ||
@@ -20,2 +20,4 @@ ## Installation | ||
```JavaScript | ||
// lingon.js | ||
#!/usr/bin/env node | ||
@@ -31,10 +33,3 @@ | ||
``` | ||
Also put the livereload script into you index.html: | ||
```HTML | ||
<body> | ||
... | ||
<script>document.write('<script src="http://' + (location.host || 'localhost').split(':')[0] + ':35729/livereload.js"></' + 'script>')</script> | ||
</body> | ||
``` | ||
This step will soon be automated and not needed to to manually. | ||
The ``<script>`` tag that communicates with the livereload server will be automatically injected before the closing ```</body>``` tag in your ``ìndex.html`` file. | ||
@@ -52,3 +47,3 @@ ## Configuration | ||
* Automatically inject the livereload browser script in index.html | ||
* ~~Automatically inject the livereload browser script in index.html~~ | ||
* Automatically add available file extensions from the source folder for livereload to watch | ||
@@ -55,0 +50,0 @@ * Enable css to be injected live. The current integration doesn't support it. |
6162
51