From d352bfc78ba5fc67f0789d9450a45f17548d77d3 Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Mon, 7 Mar 2016 22:17:38 -0500 Subject: [PATCH] Always run the version task again --- gulpfile.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 533ad5c..0bd4f82 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -50,12 +50,10 @@ elixir(function(mix) { .scripts(jsLocal, 'public/js/app.js', 'resources/assets/js/') .scripts(jsDashboard, 'public/js/dashboard.js', 'resources/assets/js/') .scripts(jsBower, 'public/js/lib.js', 'bower_components/') - .scripts(jsDashboardBower, 'public/js/lib-dashboard.js', 'bower_components/'); + .scripts(jsDashboardBower, 'public/js/lib-dashboard.js', 'bower_components/') + .version(['css/dashboard.css', 'css/app.css', 'js/dashboard.js', 'js/app.js', 'js/lib.js', 'js/lib-dashboard.js']); - if (elixir.config.production) { - // run the version function on production - mix.version(['css/dashboard.css', 'css/app.css', 'js/dashboard.js', 'js/app.js', 'js/lib.js', 'js/lib-dashboard.js']); - } else { + if (!elixir.config.production) { // start livereload when not production require('laravel-elixir-livereload'); mix.livereload();