File tree Expand file tree Collapse file tree 1 file changed +14
-5
lines changed Expand file tree Collapse file tree 1 file changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -113,16 +113,24 @@ module.exports = function(grunt) {
113113 } ,
114114
115115 connect : {
116- server : {
116+ options : {
117+ hostname : 'localhost' ,
118+ livereload : 35729 ,
119+ port : 3000
120+ } ,
121+ livereload : {
117122 options : {
118- base : 'tests ' ,
119- port : 3000
123+ base : 'dist/ ' ,
124+ open : true // Automatically open the webpage in the default browser
120125 }
121126 }
122127 } ,
123128
124129 watch : {
125- files : [ 'Gruntfile.js' , 'tasks/**/*.js' , 'test/**/*.*' ] ,
130+ options : {
131+ livereload : '<%= connect.options.livereload %>'
132+ } ,
133+ files : [ 'Gruntfile.js' , 'tasks/**/*.js' , 'tests/**/*.*' ] ,
126134 tasks : [ 'jshint' , 'test' ]
127135 }
128136
@@ -137,7 +145,8 @@ module.exports = function(grunt) {
137145 'uncss:testMany' ,
138146 'uncss:testUncssrc' ,
139147 'uncss:testUrl' ,
140- 'simplemocha'
148+ 'simplemocha' ,
149+ 'default'
141150 ] ) ;
142151
143152 grunt . registerTask ( 'dev' , [
You can’t perform that action at this time.
0 commit comments