Closed rlweb closed 4 years ago
As the error states: do you really want to call the prototyping command vue build
?
You likely want to call npm run build
(which calls vue-cli-service build
)
But that's not the issue here! It works when I don't use a glob within the filename aha.
But that's not the issue here
...but that's the issue that the error message is about.
It works when I don't use a glob within the filename aha.
That's new information. And still correct, in a way. As per the docs, vue build
is specifically explained as building one .js or .vue file, not a glob.
The part of the docs that you linked to is about vue-cli-service build
.
Please provide a runnable reproduction before we continue to think about theoreticals and end up talking about different problems.
Closing due to inactivity
Version
4.1.2
Environment info
Steps to reproduce
Based on https://cli.vuejs.org/guide/build-targets.html#bundle-that-registers-multiple-web-components
I should be able to run
vue build --target wc --name foo 'src/components/layout/*.vue'
What is expected?
A build completes with multiple components built into the wc bundle.
What is actually happening?