Showing
2 changed files
with
2 additions
and
2 deletions
@@ -140,7 +140,7 @@ Controller.prototype.client=function(res,views,model,clientmodel){ | @@ -140,7 +140,7 @@ Controller.prototype.client=function(res,views,model,clientmodel){ | ||
140 | var src=""; | 140 | var src=""; |
141 | 141 | ||
142 | 142 | ||
143 | - if(process.env.NODE_ENV==="production"){ | 143 | + if(process.env.NODE_ENV==="production"||process.env.NODE_ENV==="gray"){ |
144 | src="http://cdn.yoho.cn/"+config.name+"/"+config.version; | 144 | src="http://cdn.yoho.cn/"+config.name+"/"+config.version; |
145 | html=html.replace(/\/static\/index\.min\.css/g,function($1){ | 145 | html=html.replace(/\/static\/index\.min\.css/g,function($1){ |
146 | return src+"/index.min.css"; | 146 | return src+"/index.min.css"; |
@@ -140,7 +140,7 @@ Controller.prototype.client=function(res,views,model,clientmodel){ | @@ -140,7 +140,7 @@ Controller.prototype.client=function(res,views,model,clientmodel){ | ||
140 | var src=""; | 140 | var src=""; |
141 | 141 | ||
142 | 142 | ||
143 | - if(process.env.NODE_ENV==="production"){ | 143 | + if(process.env.NODE_ENV==="production"||process.env.NODE_ENV==="gray"){ |
144 | src="http://cdn.yoho.cn/"+config.name+"/"+config.version; | 144 | src="http://cdn.yoho.cn/"+config.name+"/"+config.version; |
145 | html=html.replace(/\/static\/index\.min\.css/g,function($1){ | 145 | html=html.replace(/\/static\/index\.min\.css/g,function($1){ |
146 | return src+"/index.min.css"; | 146 | return src+"/index.min.css"; |
-
Please register or login to post a comment