realtebo's avatar

How to avoid mix at all in development?

Is there a way to bypass mix while developing? Is sooooo slow on my specific environment.

I'd like to simply use my javascript and css 'as is' in development and then I'll manually run npm run production before releasing.

I know how handle dynamic inclusions, based on env, into my blade layout, but how to be able to 'load all js and css as is' in devlopment is out of my knowledge.

Is it possible?

0 likes
2 replies
topvillas's avatar

Try using gulp to just copy your files to where you need them, it might be quicker.

skimuli's avatar

copy your .js files to public/js and .css to public/css

//from app.blade.php (if its your master template)
@if(config('app.env') == 'local')
 <link href="{{ asset('css/app.css') }}" rel="stylesheet"> //it applies to .js files too
@endif

Please or to participate in this conversation.