5

I'm currently experiancing a slow down in my development workflow, it is taking around 3-4s for my less to compile and then version, this is causing much annoyance. I would like to 'split' my watcher down so that it is only compiling the changed files, I would wondering if this was possible in Elixir without going to core Gulp?

Currently I have:

mix.less([
        'app.less',
        'login.less',
        'till.less'
    ])
    .version([
        "css/app.css",
        "css/login.css"
    ]);

I have tried splitting this down into multiple pipes, but it appears to overwrite and only do the last task:

mix.less([
        'app.less',
        'login.less'
    ])
    .less(['till.css'])
    .version([
        "css/app.css",
        "css/login.css"
    ]);

Is there any way to solve this?

Jono20201
  • 3,215
  • 3
  • 20
  • 33

1 Answers1

0

I was also getting long build times by gulp, but by using the --production flag it cut down my build time by about half the time, but take note that it also compresses the output. May be this will work for you also.

Azeame
  • 2,322
  • 2
  • 14
  • 30