entrypoint-assets-webpack-plugin
Exports a JSON file that maps entry names to public paths of chunks for an entry grouped by chunk file extensions.
This mapping can then be used to generate import assets in HTML by entry name not the asset names.
Usage
Install via npm:
npm install entrypoint-assets-webpack-plugin
Usage example:
const webpack = const EntrypointAssetsPlugin = moduleexports = entry: "site": "./site" "admin": "./admin" plugins: name: "common" chunks: "site" "admin" ;
Options
filename
Default:"entrypoints.json"
Exported entrypoints filename.
mappings
Default:
"js": /\.js$/ "map": /\.map$/ "css": /\.css$/
Groups assets by regexp.