Webpack Asset Map Plugin
Creates a json file that any server side technology can consume for asset declarations. Example output file:
The key is the relative path from the generated file to the image location in your source location. The value is the public url slug generated by webpack.
Usage
For webpack 1, use version 2.x of asset-map-webpack-plugin
; for webpack 2/3, use version 3.x.
Add to the plugins array in your webpack config:
;...plugins:/*** AssetMapPlugin** @param* @param*/outputFilename relativeTo;