File tree Expand file tree Collapse file tree 3 files changed +16
-2
lines changed Expand file tree Collapse file tree 3 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -127,7 +127,8 @@ module.exports = {
127127          / \. h t m l $ / , 
128128          / \. ( j s | j s x ) $ / , 
129129          / \. c s s $ / , 
130-           / \. j s o n $ / 
130+           / \. j s o n $ / , 
131+           / \. i c o n \. s v g / 
131132        ] , 
132133        loader : 'url' , 
133134        query : { 
@@ -172,6 +173,11 @@ module.exports = {
172173      { 
173174        test : / \. j s o n $ / , 
174175        loader : 'json' 
176+       } , 
177+       {  
178+         test : / \. i c o n \. s v g / , 
179+         exclude : / n o d e _ m o d u l e s / , 
180+         loader : 'raw!svgo?' + JSON . stringify ( { plugins : [ { minifyStyles : true } ] } ) 
175181      } 
176182    ] 
177183  } , 
Original file line number Diff line number Diff line change @@ -133,7 +133,8 @@ module.exports = {
133133          / \. h t m l $ / , 
134134          / \. ( j s | j s x ) $ / , 
135135          / \. c s s $ / , 
136-           / \. j s o n $ / 
136+           / \. j s o n $ / , 
137+           / \. i c o n \. s v g / 
137138        ] , 
138139        loader : 'url' , 
139140        query : { 
@@ -182,6 +183,11 @@ module.exports = {
182183      { 
183184        test : / \. j s o n $ / , 
184185        loader : 'json' 
186+       } , 
187+       {  
188+         test : / \. i c o n \. s v g / , 
189+         exclude : / n o d e _ m o d u l e s / , 
190+         loader : 'raw!svgo?' + JSON . stringify ( { plugins : [ { minifyStyles : true } ] } ) 
185191      } 
186192    ] 
187193  } , 
Original file line number Diff line number Diff line change 5757    "path-exists" : " 2.1.0"  ,
5858    "postcss-loader" : " 1.0.0"  ,
5959    "promise" : " 7.1.1"  ,
60+     "raw-loader" : " ^0.5.1"  ,
6061    "react-dev-utils" : " ^0.3.0"  ,
6162    "recursive-readdir" : " 2.1.0"  ,
6263    "strip-ansi" : " 3.0.1"  ,
6364    "style-loader" : " 0.13.1"  ,
65+     "svgo-loader" : " ^1.1.2"  ,
6466    "url-loader" : " 0.5.7"  ,
6567    "webpack" : " 1.13.2"  ,
6668    "webpack-dev-server" : " 1.16.2"  ,
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments