Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

弱弱的问一句npm run build是什么意思 #10

Closed
WangYuLue opened this issue Feb 22, 2017 · 5 comments
Closed

弱弱的问一句npm run build是什么意思 #10

WangYuLue opened this issue Feb 22, 2017 · 5 comments

Comments

@WangYuLue
Copy link

不太懂

@SimonZhangITer
Copy link
Owner

@WangYuLue
这个是用webpack封装的项目打包命令,在命令行运行后会生成dist文件夹,这个就是打包后的文件夹

@WangYuLue
Copy link
Author

看到dist文件夹了,这个文件夹是不是在实际部署的时候用的?

@SimonZhangITer
Copy link
Owner

@WangYuLue
是的,只需要把这个文件夹部署到服务器就可以了

@WangYuLue
Copy link
Author

谢谢大神,尝试了在服务器上部署了,成功了。
不过还有一个小疑惑,为什么在文件夹里直接打开就没有用?

@SimonZhangITer
Copy link
Owner

@WangYuLue
这里面是有路由的 需要服务器的解析

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants