.env.dev does not take effect

You can override the default mode for the command line by passing the --mode option argument, which defaults to "development".

insert image description here
By default – mode XX is not required to be written. As shown in the figure below; at
insert image description here
this time, it defaults to reading in .env.developmen. no. env.dev

If you want to read from .env.dev, you should customize it, just write dev after mode.


```"dev": "vue-cli-service build --mode dev"

Guess you like

Origin blog.csdn.net/qq_42931285/article/details/124336135