SHARE
TWEET

Untitled

a guest Jul 17th, 2017 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. rules: [
  2.       ...
  3.       {
  4.         test: /.(jpe?g|png|gif|svg)$/i,
  5.         use: [
  6.           'file-loader?name=[name].[ext]&publicPath=/&outputPath=images/',
  7.           'image-webpack-loader'
  8.         ]
  9.       },
  10.     ]
  11.    
  12. <img src={ require( './images/shopping-cart.png' ) } alt="shopping cart" />
RAW Paste Data
Top