Last active
May 13, 2016 03:04
-
-
Save ruby0x1/2fe6dfd3092bf2c0670f to your computer and use it in GitHub Desktop.
livereload example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
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