a webpack plugin to generate webpack assets into a json
const AssetWebpackPlugin = require('asset-webpack-plugin');
plugins: {
...
new AssetWebpackPlugin({
name: 'assets.json'
})
}
Parameter | Type | Default | Options | Description |
---|---|---|---|---|
name | string |
'assets.json' | the file name generated in output |
assets json list all assets in output directory, like below:
[
'/static/images/banner-bg.png'
,'/static/images/banner-detail-arc.png'
...
,'static/scripts/common.f31d2040.js'
...
,'static/style/detail.83a6c22c.css'
...
,'assets.json'
,'user.html'
,'index.html'
]