Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(cli-service-global): to know if the build has finished #5061

Merged
merged 1 commit into from
Jan 13, 2020

Conversation

cheqianxiao
Copy link
Contributor

What kind of change does this PR introduce? (check at least one)

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Docs
  • Underlying tools
  • Other, please describe:

Does this PR introduce a breaking change? (check one)

  • Yes
  • No

Other information:

@haoqunjiang
Copy link
Member

I don't understand. Can you elaborate on the use case of this return value?

@cheqianxiao
Copy link
Contributor Author

I don't understand. Can you elaborate on the use case of this return value?

我们在公司内部的一个脚手架工具中用到了@vue/cli-service-global中build方法去打包一个单独的vue组件,打包完成后需要将打包后的文件上传到服务器。类似这样:

const { build } = require('import-global')('@vue/cli-service-global')
build('src/index.vue').then(doUpload)

@pksunkara pksunkara merged commit 4e154ac into vuejs:dev Jan 13, 2020
mactanxin pushed a commit to mactanxin/vue-cli that referenced this pull request Feb 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants