Pemba Tamang
Pemba Tamang

Reputation: 185

updating component doesnot show any effect in vue file when browser is refreshed.project is in cpanel

My project is build in laravel framework with vuejs. My problem is that when I update component and refresh the browser no change is shown. It is working fine in local. This problem shows up when project is uploaded to cpanel. What could be the reason? Even if i empty the component then still the component is seen as before, nothing changes.

Upvotes: 3

Views: 1596

Answers (1)

Sabee
Sabee

Reputation: 1811

When you make a project with laravel and Vue.js, you need to use a command in cmd/terminal npm run watch, when this command is runs your vue scripts automatically building with webpack, and then displaying in browser window. When you want to upload your project and make it in production version, you need to run npm run build to build your components. If you able to run npm command on your hosting provider try to run npm run build in your project folder on the server, after that the changes can be see immediately. If not run it locally and upload to server.

PS. Please provide more information.

Upvotes: 1

Related Questions