首页 > 解决方案 > How to see the build version of a build project with npm

问题描述

I know that my question gonna be quite stupid for the pro vue.js and Webpack. I'm not really use to it yet.

I have actually a little application with vue.js and webpack. I was developing and seeing the result by using the command : npm run dev and looking at the local adress : http://localhost:8080/

Then, I have done a build version with : npm run build So eveything is fine but now, I dont know how to see the final result locally. What I have to do or what I'm missing ?

Thank for your answer

标签: npmwebpackvue.jsbuild

解决方案


你可以使用http-servernpm 包:

yarn global install http-server

# Or

npm install -g http-server

然后cd进入您构建的文件夹并启动http-server. 这应该给你一个网址。


推荐阅读