easywebpack 静态资源 manifest 文件
easywebpack 3.5.0 新增自定义插件 webpack-manifest-resource-plugin(^2.0.2) 替换 webpack-manifest-plugin。 之前的 manifest 依赖关系是在 Egg 运行期间解析的,现在改为构建期组装好资源依赖关系。新生成的 manifest 可以在纯前端项目使用,比如 PWA 场景(easywebpack 计划内置支持 PWA构建, 目前正在调研中……)。
- webpack-manifest-plugin
// ${app_root}/config/manifest.json
{
"app/app.js": "/public/js/app/app.2cf6dfd1.js",
"app/app.css": "/public/css/app/app.cda9bc64.css",
"common.js": "/public/js/common.b59f7169.js",
"common.css": "/public/css/common.cda9bc64.css"
}
- webpack-manifest-resource-plugin
// ${app_root}/config/manifest.json
{
"app/app.js": "/public/js/app/app.2cf6dfd1.js",
"app/app.css": "/public/css/app/app.cda9bc64.css",
"common.js": "/public/js/common.b59f7169.js",
"common.css": "/public/css/common.cda9bc64.css",
"deps": {
"app/app.js": {
"js": [
"/public/js/vendor.337ab787.js",
"/public/js/common.b59f7169.js",
"/public/js/app/app.2cf6dfd1.js"
],
"css": [
"/public/css/common.cda9bc64.css",
"/public/css/app/app.cda9bc64.css"
]
}
}