P E N C I L
Login

WebPack loader

  1. module : { rules: [
       {test: /\.gif/,
        use: [ {loader: 'file-loader'}, {loader: 'url-loader'} ]
    ]}
    ex: https://jsfiddle.net/greensuisse/p0hL6868

  2. css-loader

    1. All attribute url(xxx)
      => Convert to require(xxx)
      => Then a corresponding loader (based on extension is called)