Support the ongoing development of Laravel.io →
Configuration
Last updated 2 years ago.
0

It's pretty easy to write your own gulpfile if you're having problems with Elixir.

All you're doing is compiling some scripts and styles, Gulp does that in a couple of lines and you can add live reload very easily.

I decided to do this recently as I wanted more control, was finding that the watch task was taking too long, and didn't like the fact that when things did go wrong, there wasn't any documentation to help.

Last updated 9 years ago.
0

Ok I will give it a shot.

Thanks.

0

Here's my gulp setup:

It creates:

  • a single minified "all.min.js" script file
  • one .css file per .scss file (use SASS @imports to control concatenation of multiple .scss files)

Also includes:

  • source maps (view Chrome debugger > Sources > Source Tab > "source" node)
  • live reload (make sure to reload the page after starting the default gulp task)
  • build task (call "gulp build --live" to build production scripts, minified and without comments or source maps)

https://gist.github.com/davestewart/1a1d3c59c090928e1b38

Last updated 9 years ago.
0

Thanks for the script :)

Will try this way and see how it goes.

Much appreciated.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.