- [ x ] feature request
The webpack build output essentially references a few(5) files in "index.html" and allows one to work within, which is ok. But, it would be helpful for placing these bundles into other arrangements outside of this static scenario.
{
"data": {
"production": true
},
"css": [
"styles.*.bundle.css"
],
"js": [
"inline.*.bundle.js",
"polyfills.*.bundle.js",
"vendor.*.bundle.js",
"main.*.bundle.js"
]
}
I can only find awful hacks where you leave the index.html empty and fish out the elements with gulp like this SO question - yuck!
It seems like this webpack-manifest-plugin is the basic idea but it can probably be added to the cli in a way to offers additional parameters etc.
you can use:
ng build --stats-json
Thanks, that works, it's just quite large.
I was able to use JSONStream.parse(["assetsByChunkName"]) for just the bit I need.
There could be a less verbose version of this maybe.
This isn't something we're looking at adding per se, but for now --stats-json serves that need.
Didnt't work for me! Enabled --stats-json, it produces stats.json file, but not expected manifest.json
Aaaa, now I get it. You extract the data from stats.json. Ok, I can to the same.
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
_This action has been performed automatically by a bot._
Most helpful comment
you can use: