@@ -5,19 +5,19 @@ module.exports = function(grunt) {
5
5
grunt . initConfig ( {
6
6
pkg : grunt . file . readJSON ( 'package.json' ) ,
7
7
formlyConfig : {
8
- hostname : '*' ,
8
+ hostname : 'localhost' , // change to 0.0.0.0 to listen on all connections
9
9
base : 'src' ,
10
- port : 4000 ,
11
- livereloadport : 35701 ,
10
+ port : 4000 ,
11
+ livereloadport : 35701
12
12
} ,
13
13
connect : {
14
14
dev : {
15
15
options : {
16
16
hostname : '<%= formlyConfig.hostname %>' ,
17
17
port : '<%= formlyConfig.port %>' ,
18
18
base : '<%= formlyConfig.base %>' ,
19
- livereload : '<%= formlyConfig.livereloadport %>' ,
20
- } ,
19
+ livereload : '<%= formlyConfig.livereloadport %>'
20
+ }
21
21
}
22
22
} ,
23
23
'gh-pages' : {
@@ -95,12 +95,12 @@ module.exports = function(grunt) {
95
95
}
96
96
} ,
97
97
watch : {
98
- livereload : {
99
- files : [ '<%= formlyConfig.base %>/**/*.{js,html}' ] ,
100
- options : {
101
- livereload : '<%= formlyConfig.livereloadport %>'
102
- } ,
103
- }
98
+ livereload : {
99
+ files : [ '<%= formlyConfig.base %>/**/*.{js,html}' ] ,
100
+ options : {
101
+ livereload : '<%= formlyConfig.livereloadport %>'
102
+ }
103
+ }
104
104
}
105
105
106
106
} ) ;
@@ -114,7 +114,7 @@ module.exports = function(grunt) {
114
114
grunt . loadNpmTasks ( 'grunt-gh-pages' ) ;
115
115
grunt . loadNpmTasks ( 'grunt-angular-templates' ) ;
116
116
grunt . loadNpmTasks ( 'grunt-ngmin' ) ;
117
- grunt . loadNpmTasks ( 'grunt-contrib-watch' ) ;
117
+ grunt . loadNpmTasks ( 'grunt-contrib-watch' ) ;
118
118
119
119
grunt . registerTask ( 'publish' , [
120
120
'gh-pages'
0 commit comments