1.0.1 • Published 5 years ago

wintersmith-livereload v1.0.1

Weekly downloads
12
License
MIT
Repository
github
Last release
5 years ago

wintersmith-livereload

LiveReload plugin for Wintersmith.

Installing

wintersmith plugin install livereload

or using npm

npm install [-g] wintersmith-livereload

and then add wintersmith-livereload to your config.json

{
  "plugins": [
    "wintersmith-livereload"
  ]
}

Usage

Include livereloadScript somewhere in your template, it will inject the livereload script if running in preview mode.

example using jade:

doctype html
html
  head
    meta(charset='utf-8')
    | !{ livereloadScript }
  body
    h1 Hello world

or using nunjucks:

<!DOCTYPE html>
<html>
<head>
  <title>Titlar</title>
  {{ env.helpers.livereload() | safe }}
</head>
<body>
  <h1>Hello world</h1>
</body>
</html>

Options (can be omitted, defaults shown here):

{
  "livereload": {
    "port": 35729
    "clientScript": "livereload.js"
    "liveCSS": true
  }
}

Running tests

npm install
npm test
1.0.1

5 years ago

1.0.0

7 years ago

0.2.3

7 years ago

0.2.2

9 years ago

0.2.1

9 years ago

0.2.0

9 years ago

0.1.1

10 years ago

0.1.0

11 years ago