-
Notifications
You must be signed in to change notification settings - Fork 506
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
unable to run the project in production mode. #170
Comments
Can you view the source? You should see the contents of index.html. |
If I am not mistaken, in production mode you can not load from a folder. You do need a webserver such as nginx or some node express to serve your pages. (FireFox is a bit more foregiving with loading for a folder, but still webserver is needed) |
I'm having this same issue, even after publishing to an Apache server. Files are loading correctly when viewing the network, but a blank page is just shown. Please help. |
After production build, and open up my console and saw scripts are not found. So i edited index.html file. I edited all script src location <script src="/scriptName.js"> to <script src="scriptName.js">. And it solved my problem. Note: as everything was building in "yourport/dist" folder i edited index.html which was located inside dist folder |
I'm having this problem while running in production mode. After running those command
vue init pwa my-project
cd my-project
npm install
Then I used npm run build and then locate to http://localhost/my-project/dist .. but nothing is showing. Can anyone help how to run the project in production mode.
The text was updated successfully, but these errors were encountered: