diff --git a/gulpfile.js b/gulpfile.js index a9e4df6..a05511c 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -1,14 +1,19 @@ process.env.DISABLE_NOTIFIER = true; -var gulp = require("gulp"); -var elixir = require('laravel-elixir'); +var gulp = require("gulp"), + elixir = require('laravel-elixir'), + lessglob = require('less-plugin-glob'); // require livereload when not production if (!elixir.config.production) require('laravel-elixir-livereload'); // autoprefixer settings -elixir.config.autoprefix = { remove: false, cascade: false, browsers: ['last 2 versions'] }; +elixir.config.autoprefix = { + remove: false, + cascade: false, + browsers: ['last 2 versions'] +}; // javascript files in resources/assets/js/ var jsLocal = [ @@ -30,7 +35,10 @@ var lessPaths = [ elixir(function(mix) { // elixir mix functions mix.copy('bower_components/bootstrap/dist/fonts/bootstrap/**', 'public/fonts') - .less('app.less', 'public/css/app.css', { paths: lessPaths }) + .less('app.less', 'public/css/app.css', { + paths: lessPaths, + plugins: [lessglob] + }) .scripts(jsLocal, 'public/js/app.js', 'resources/assets/js/') .scripts(jsBower, 'public/js/lib.js', 'bower_components/') .version(['css/app.css', 'js/app.js', 'js/lib.js']); diff --git a/package.json b/package.json index 68f4e46..0849f8c 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,7 @@ }, "dependencies": { "gulp": "^3.9.0", - "laravel-elixir": "^4.0.0" + "laravel-elixir": "^4.0.0", + "less-plugin-glob": "^1.1.1" } }