Skip to content

Commit

Permalink
Only render lr script when watching
Browse files Browse the repository at this point in the history
  • Loading branch information
drawveloper committed Jan 31, 2016
1 parent 599231b commit 191a4e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions bin/cleaver
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ program
.action(function () {
var file = program.args[0];
var options = getOptions();
options.watch = true;
createAndSave([file], options);

var port = 35729;
Expand Down
2 changes: 2 additions & 0 deletions templates/layout.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
<style type="text/css">
{{{style}}}
</style>
{{#options.watch}}
<script async src="http://localhost:35729/livereload.js"></script>
{{/options.watch}}
</head>
<body>
{{{slideshow}}}
Expand Down

0 comments on commit 191a4e2

Please sign in to comment.