我使用哪个命令来生成 Vue 应用程序的构建? [英] Which command do I use to generate the build of a Vue app?

查看:20
本文介绍了我使用哪个命令来生成 Vue 应用程序的构建?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用 vue-cli 开发 Vue 应用后,我应该做什么?

What should I do after developing a Vue app with vue-cli?

Angular 中,有一些命令可以将所有脚本捆绑到一个脚本中.

In Angular there was some command that bundle all the scripts into one single script.

Vue 中是否有相同的东西?

Is there something the same in Vue?

推荐答案

我认为你的项目是这样创建的:

I think you've created your project like this:

vue init webpack myproject

好了,现在你可以跑了

npm run build

将 index.html 和/dist/文件夹复制到您的网站根目录中.完成.

Copy index.html and /dist/ folder into your website root directory. Done.

这篇关于我使用哪个命令来生成 Vue 应用程序的构建?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆