Improve Grunt task with live reload
This commit is contained in:
parent
5043619558
commit
f44133ec78
|
@ -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
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
@ -77,5 +77,9 @@
|
|||
<footer class="footer" role="contentinfo">...</footer>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- build:developmentOnly -->
|
||||
<script src="//localhost:35729/livereload.js"></script>
|
||||
<!-- endbuild -->
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Reference in New Issue