0

Developers Recently i am working on a vue js Website, and everything is working fine on Development but when i build the code using npm run build , the production build gets successfully build but when i try to open the index.html file inside dist directory the file gets opened in Browser but a Blank white page gets Displayed.

2 Answers2

1

You need to start your server, not open the file directly. Because Vue builds files and connects JS and CSS like it would be on the server. And now, when you are opening the file, it can't find JS/CSS.

andyrue
  • 903
  • 10
  • 24
Asimple
  • 650
  • 3
  • 8
  • It would be really great if you can please have a look at this question and provide some work-around? https://stackoverflow.com/q/72198087/7584240 Thanks a lot in advance. – BATMAN_2008 May 11 '22 at 09:58
0

How do you want to deploy your app? I think the following post can help you: How to deploy vue app

Please check if you have a vue.config.js file and if the configuration is correct according to your project setup.

Julia
  • 148
  • 7