File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed 
packages/hap-packager/src/plugins Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -33,10 +33,12 @@ HandlerPlugin.prototype.apply = function (compiler) {
3333        const  entryFiles  =  getEntryFiles ( compiler . options . entry ) 
3434        const  liteEntryFiles  =  getLiteEntryFiles ( compiler . options . entry ) 
3535        const  {  originType }  =  compileOptionsObject  ||  { } 
36+         const  isDevMode  =  globalConfig . mode  ===  'development' 
3637        compilation . chunks . forEach ( function  ( chunk )  { 
3738          chunk . files . forEach ( function  ( fileName )  { 
39+             // 非 IDE 打轻卡包或者 IDE 打正式轻卡包 
3840            if  ( 
39-               originType  !==  compileOptionsMeta . originTypeNum . IDE  && 
41+               ( originType  !==  compileOptionsMeta . originTypeNum . IDE   ||   ! isDevMode )  && 
4042              liteEntryFiles . indexOf ( fileName )  >=  0 
4143            )  { 
4244              delete  compilation . assets [ fileName ]  // delete bundle js for lite card 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments