Skip to content

Duplicate the compiling log while doing the build, watch #5222

@aryaroudi

Description

@aryaroudi

Version

4.2.2

Environment info

macOS High Sierra
iTerm 2
ZSH
Node v12

Steps to reproduce

In any new project with Vue-CLI v4 if you run the below command:

vue-cli-service build --mode dev --target lib --name cv --watch

What is expected?

No duplicate these lines while building or watch and combine all together

What is actually happening?

It will show 3 lines of DONE Compiled or if you make a change it shows WAIT Compiling... 3 times and then individual output for each lib file that it is generating

1233222


It causes huge lines of logs that makes the output very dirty

Activity

LinusBorg

LinusBorg commented on Feb 26, 2020

@LinusBorg
Member

Well, it triggers three builds: one for each format of umd, umd.min and commonjs.

Since you likely only use one of those during development, you could run this:

vue-cli-service build --mode dev --target lib --name cv --watch --formats umd
aryaroudi

aryaroudi commented on Feb 26, 2020

@aryaroudi
Author

Hey @LinusBorg But it wouldn't be great that these lines get merge together? for example, 3 times showing the warnings isn't very convenient 😕

LinusBorg

LinusBorg commented on Feb 26, 2020

@LinusBorg
Member

You build 3 files, you should know that the build failed for each of those.

Keeping them together where possible might be nicer, but be a lot of added complexity that I don'T feel is worth it.

If you or someone else comes up with a clever proposal how to do it though, wee can consider it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @LinusBorg@aryaroudi

        Issue actions

          Duplicate the compiling log while doing the build, watch · Issue #5222 · vuejs/vue-cli