Skip to content

Prevent vue inspect from outputting "omitted long function" #1157

Closed
@Dragas

Description

@Dragas

What problem does this feature solve?

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 *!/ }`
      }

What does the proposed API look like?

An additional modifier (for example -v for --verbose) would do.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions