Skip to content

Instantly share code, notes, and snippets.

@ruby0x1
Last active May 13, 2016 03:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ruby0x1/2fe6dfd3092bf2c0670f to your computer and use it in GitHub Desktop.
Save ruby0x1/2fe6dfd3092bf2c0670f to your computer and use it in GitHub Desktop.
livereload example
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="icon" href="favicon.png"/>
<meta charset="utf-8">
<style>
#app {
display: block;
position: relative;
margin: 2em auto 0 auto;
}
</style>
{{#each project.app.web.libs~}}
<script type="text/javascript" src="{{this}}"></script>
{{/each}}
</head>
<body style="padding: 0; margin: 0; background-color: #111111;">
<script type="text/javascript" src="./{{project.app.name}}{{#if project.app.web.min}}.min{{/if}}.js"></script>
<!-- livereload -->
<script type="text/javascript">
document.write('<script src="http://' + (location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1"></' + 'script>')
</script>
</body>
</html>
{
project : {
name : 'empty',
version : '1.0.0',
author : 'luxeengine',
app : {
name : 'luxe_empty',
package : 'com.luxeengine.empty'
},
build : {
dependencies : {
luxe : '*',
}
},
files : {
assets : 'assets/',
index : { path:'custom_index.html => index.html', template:'project' }
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment