--mode breaks build #12753
Replies: 1 comment
-
Hi @OlivierPetri, This isn't necessarily a When you run For example, if your {
"scripts": {
"dev": "vite"
}
} The To make it more explicit, you can include a double-dash ( npm run dev -- --mode development The double-dash tells npm that anything after it should go directly to the script being executed, bypassing npm itself. |
Beta Was this translation helpful? Give feedback.
-
Version
3.5.13
Reproduction link
stackblitz.com
(call: npm run dev --mode development to reproduce)
Steps to reproduce
What is expected?
Vue starting up as if only
was called
What is actually happening?
http://localhost:5173/ returns 404 - not found
Setting "--mode production" has the same effect.
I tried to use .env files for my project until I found out setting --mode would even break the example build.
Observation: The regular (un--moded) build displays
on the command line. But with the --mode option set, the two "Vue DevTools" lines are missing.
Beta Was this translation helpful? Give feedback.
All reactions