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)
  3. file-loader 
    https://github.com/webpack-contrib/file-loader
    1. Emit the file with good hash name
      Output file is configure by webpack configure
      output: {  path:}
    2. Replace url(xxx) by publicPath/hash
      pubic path is configure in webpage.output.publicPath