获取打包产出资源列表
const WebpackAssetsManifest = require('webpack-assets-manifest')module.exports = {plugins: [new WebpackAssetsManifest({output: 'manifest.json',writeToDisk: true})]}
可利用此插件产出 prefetch.html,此插件有 done 钩子函数,回调参数为 manifest,manifest.assets 存储了所有资源,可以遍历此列表产出 prefetch.html 提前加载资源
