File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed 
lib/generators/react_on_rails Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -18,13 +18,13 @@ def copy_base_files
1818        base_files  =  %w[ app/javascript/bundles/HelloWorld/components/HelloWorld.jsx 
1919                        app/javascript/bundles/HelloWorld/components/HelloWorld.module.css ] 
2020        base_files . each  {  |file | copy_file ( "#{ base_js_path } #{ file }  ,  file )  } 
21-          
21+ 
2222        # Also copy to new auto-registration structure for server-side rendering compatibility 
2323        copy_file ( "#{ base_js_path }  , 
2424                  "app/javascript/src/HelloWorld/ror_components/HelloWorld.jsx" ) 
2525        copy_file ( "#{ base_js_path }  , 
2626                  "app/javascript/src/HelloWorld/HelloWorld.module.css" ) 
27-          
27+ 
2828        # Fix CSS import path in the ror_components version 
2929        ror_component_file  =  "app/javascript/src/HelloWorld/ror_components/HelloWorld.jsx" 
3030        gsub_file ( ror_component_file ,  "./HelloWorld.module.css" ,  "../HelloWorld.module.css" ) 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments