Looking for a tool with guide to compress my CSS & JS File into one file & No spaces.
Question 1 Is there a way to switch between usage of multiple css / js to just one file or do I have to manually comment all my css and js file out from each page upon creating the single css / js file.
Question 2 Which is the easiest method of doing so, any available library made for laravel for this?
I'm reading on Grunt , doesn't seem friendly :X
I use gulp and find it really simple but also powerful and customisable.
I did a quick google and found this tutorial which seems to look like it has lots of great tutorials.
Theres also assertic which does a similar job using php. I've never used it but it seems to be quite thorough and it would be easier to integrate with laravel and a build process with laravel commands.
The third is codeKit for OSX. Its a nice gui asset compiler. Make sure you comment with what you finally go with. I'm curious.
This part of the Laravel documentation gives you all you want : http://laravel.com/docs/5.0/elixir
i find a free online service to minify js http://www.online-code.net/minify-js.html and compress css http://www.online-code.net/minify-css.html, so it will reduce the size of web page.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community