Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

How to fix CSS & JS not loading issue in cPanel laravel

CSS & JS not loading issue because of server cache
HTML/PHP
	+ <script src="js/main.js?v=1213254325"></script>
		+ 1213254325 can change into any value
Laravel
	+ webpack.mix.js
		mix.js('resources/js/main.js','public/js').version();
	+ npm run watch
    + add below code to blade file 
		<script src="{{ mix('js/main.js') }}"></script>
 
PREVIOUS NEXT
Tagged: #How #fix #CSS #JS #loading #issue #cPanel #laravel
ADD COMMENT
Topic
Name
4+5 =