|
|
hai 2 meses | |
|---|---|---|
| img | %!s(int64=2) %!d(string=hai) anos | |
| public | hai 3 meses | |
| src | hai 2 meses | |
| .browserslistrc | %!s(int64=2) %!d(string=hai) anos | |
| .editorconfig | %!s(int64=2) %!d(string=hai) anos | |
| .env.development | hai 3 meses | |
| .env.production | hai 3 meses | |
| .eslintrc.js | %!s(int64=2) %!d(string=hai) anos | |
| .gitignore | %!s(int64=2) %!d(string=hai) anos | |
| Dockerfile | hai 3 meses | |
| LICENSE | %!s(int64=2) %!d(string=hai) anos | |
| README.md | hai 2 meses | |
| babel.config.js | %!s(int64=4) %!d(string=hai) anos | |
| build.sh | hai 3 meses | |
| build_devopsapp.sh | hai 3 meses | |
| package.json | hai 2 meses | |
| vue.config.js | %!s(int64=2) %!d(string=hai) anos |
ElementUI 的模板框架来自这个项目 master 分支的 c93506a7 版本
.env.development 和 .env.production 环境文件中分别配置开发环境和生产环境的后端接口
npm --registry http://registry.npm.taobao.org i
npm run serve
启动服务后打开浏览器,访问 http://localhost:8000
npm run build
使用 .env.production 文件中的配置
构建后生成的结果在 dist 目录中
server {
listen 8080;
access_log off;
root /opt/webroot;
location / {
try_files $uri $uri/ /index.html;
}
}
root 指令的路径指向 dist 目录的绝对路径