WeareJH / config-gen

Generate RequireJS Optimizer configuration for a Magento 2 website based on real-world usage.
84 stars 9 forks source link

Show additional urls for build files in stdout #40

Closed tdgroot closed 6 years ago

tdgroot commented 6 years ago

I thought this would be a nice addition!

When starting the program, output would look like the following:

https://127.0.0.1:40513
https://127.0.0.1:40513/__bs/build.json (Generates the configuration needed for the Optimizer)
https://127.0.0.1:40513/__bs/loaders.js (Generates the JavaScript needed to load additional bundles)
https://127.0.0.1:40513/__bs/seed.json  (Generates a dump of the current state so that you can pick up where you left off)

This way you could open the build urls directly in the browser, instead of fiddling with the given url to open it.

Edit: changed the output sample.

shakyShane commented 6 years ago

@tdgroot looks good.

ideally after this, we should add a flag to also output this information in JSON format so that it can be consumed by other tools - that was the original reason for outputting only the url

but for now this is good 👍