Skip to content

Commit 0ff8ffb

Browse files
committed
feat(app): Separate client and server watchers
1 parent 56332de commit 0ff8ffb

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

Diff for: templates/common/Gruntfile.js

+11-4
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,19 @@ module.exports = function (grunt) {
5151
files: ['<%%= yeoman.app %>/styles/{,*/}*.{scss,sass}'],
5252
tasks: ['compass:server', 'autoprefixer']
5353
},<% } %>
54+
livereload: {
55+
files: [
56+
'<%= yeoman.app %>/{,*//*}*.html',
57+
'{.tmp,<%= yeoman.app %>}/styles/{,*//*}*.css',
58+
'{.tmp,<%= yeoman.app %>}/scripts/{,*//*}*.js',
59+
'<%= yeoman.app %>/images/{,*//*}*.{png,jpg,jpeg,gif,webp,svg}',
60+
],
61+
options: {
62+
livereload: true
63+
}
64+
},
5465
express: {
5566
files: [
56-
'<%%= yeoman.app %>/{,*//*}*.html',
57-
'{.tmp,<%%= yeoman.app %>}/styles/{,*//*}*.css',
58-
'{.tmp,<%%= yeoman.app %>}/scripts/{,*//*}*.js',
59-
'<%%= yeoman.app %>/images/{,*//*}*.{png,jpg,jpeg,gif,webp,svg}',
6067
'server.js',
6168
'lib/{,*//*}*.{js,json}'
6269
],

0 commit comments

Comments
 (0)