项目添加robots.txt 防止后台管理系统被搜索引擎收录
This commit is contained in:
		
							parent
							
								
									19b8688759
								
							
						
					
					
						commit
						0c069a57cc
					
				| 
						 | 
				
			
			@ -117,7 +117,11 @@ module.exports = {
 | 
			
		|||
                }
 | 
			
		||||
              }
 | 
			
		||||
            })
 | 
			
		||||
          config.optimization.runtimeChunk('single')
 | 
			
		||||
          config.optimization.runtimeChunk('single'),
 | 
			
		||||
          {
 | 
			
		||||
             from: path.resolve(__dirname, './public/robots.txt'),//防爬虫文件
 | 
			
		||||
             to:'./',//到根目录下
 | 
			
		||||
          }
 | 
			
		||||
        }
 | 
			
		||||
      )
 | 
			
		||||
  }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue