Improve Grunt task with live reload

This commit is contained in:
Vincent Fournier 2015-04-30 11:45:27 -04:00
parent 5043619558
commit f44133ec78
2 changed files with 9 additions and 0 deletions

View File

@ -145,6 +145,7 @@ module.exports = function (grunt) {
watch: {
adagios: {
files: [
'<%= project.app %>/**/*.html',
'<%= project.app %>/components/live/adagios.js',
'<%= project.assets %>/sass/{,*/}*.{scss,sass}'
],
@ -152,10 +153,14 @@ module.exports = function (grunt) {
},
surveil: {
files: [
'<%= project.app %>/**/*.html',
'<%= project.app %>/components/live/surveil.js',
'<%= project.assets %>/sass/{,*/}*.{scss,sass}'
],
tasks: ['copy:surveil', 'sass:dev']
},
options: {
livereload: true
}
}
});

View File

@ -77,5 +77,9 @@
<footer class="footer" role="contentinfo">...</footer>
</div>
</div>
<!-- build:developmentOnly -->
<script src="//localhost:35729/livereload.js"></script>
<!-- endbuild -->
</body>
</html>