I've come to an issue where I need to modify the default vue CLI webpack configuration and while trying to output it I found out that key parts (mainly transformers) are omitted for no reason at all. This can be clearly seen on lines 30-32 of @vue/cli-service/lib/commands/inspect.js as the following is defined:
      if (typeof value === 'function' && value.toString().length > 100) {
        return `function () { /!* omitted long function *!/ }`
      }
An additional modifier (for example -v for --verbose) would do.
for no reason at all.
Except the reason to improve read ability for the majority of use cases...
The suggestion itself is not bad though
for no reason at all.
Except the reason to improve read ability for the majority of use cases...
The suggestion itself is not bad though.
We could accept a PR for this I think.
The readability is barely improved, considering its already suggested to
output the result to a file.
On Fri, Apr 20, 2018, 18:25 Thorsten Lünborg notifications@github.com
wrote:
for no reason at all.
Except the reason to improve read ability for the majority of use cases...
The suggestion itself is not bad though
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/vuejs/vue-cli/issues/1157#issuecomment-383131987, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AFzALGFg_6mYKsEtUihHtq9_PYc6E3Vmks5tqf3PgaJpZM4TdNFv
.
Well, if you're fine with scrolling over hundreds of lines of code (in console or a file) from some function just to find some loader config, good for you. It would get on my nerves pretty quickly.
As I said, a --verbose flag is a nice idea, but the default should (in my opinion) the way it is.
Why not make the hard-coded 100 a config item? 0 for the equivalent of --verbose, 100 default. That would allow control of the allowable output function size, filtering out the really long functions, but still outputting the not-so-long ones.
Most helpful comment
Well, if you're fine with scrolling over hundreds of lines of code (in console or a file) from some function just to find some loader config, good for you. It would get on my nerves pretty quickly.
As I said, a --verbose flag is a nice idea, but the default should (in my opinion) the way it is.