在@ vue / cli 4.0.5应用程序中,我有3个文件: .env .env。发展 .env.production
并且我不确定在本地服务器上使用以下命令运行时应使用哪个:
npm run serve
使用以下命令在服务器上部署OR:
npm run build
这些选项写在哪里?
在这些文件中的任何一个中,我都可以使用diffrent rest_api_url,但是有哪些可用选项? 一些附加调试?就像在php框架中一样...
已修改: 我试图遵循链接中的命令,但很惊讶出现错误:
$ vue-cli-service build --mode development
vue-cli-service: command not found
$ vue-cli-service serve
vue-cli-service: command not found
$ vue-cli-service build
vue-cli-service: command not found
$ vue --version
@vue/cli 4.0.5
$ uname -a
Linux athoe 4.15.0-72-generic #81-Ubuntu SMP Tue Nov 26 12:20:02 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
我的Kubuntu 18上没有安装某些东西吗?我也用npm命令...