-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
Does @vue/cli-service provide a way to call the JavaScript API to build? #7436
Comments
Hi, why you need to call this in JavaScript api? Try to use like this: const {execSync} = require("child_process")
execSync("npm run build") |
I need to flexibly perform packaging operations in the node environment |
Then why you can't use execSync to do build operations? If you really have some problems with this method, can you tell me more about your usage? |
For example, I need to dynamically add or delete plugins |
Then just |
Version
3.11.0
Reproduction link
cli.vuejs.org
Environment info
Steps to reproduce
Does @vue/cli-service provide a way to call the JavaScript API to build?
What is expected?
provide a way to call the JavaScript API to build
What is actually happening?
There is no way to build with JavaScript API
The text was updated successfully, but these errors were encountered: