jeudi 9 février 2017

How to anchor different js and css files in each Laravel environment?

I have two environments, development and production.

In master.blade layout file, I point to my local js file like that:

<script src="http://ift.tt/2lvY02y" type="text/javascript"></script>

However, I convert this line to the following one for production server.

<script src="http://ift.tt/2lp3zDc" type="text/javascript"></script>

It is very annoyting and error-prone to switch between them. How can I solve this problem in an environment independent way.



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2krIYd7
via IFTTT

Aucun commentaire:

Enregistrer un commentaire