mirror of
https://github.com/prurigro/hypothetical.git
synced 2024-12-22 17:50:22 -05:00
Include the less glob plugin so less files can be imported using wildcards
This commit is contained in:
parent
edd8c6f98d
commit
7f04d74047
2 changed files with 14 additions and 5 deletions
16
gulpfile.js
16
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']);
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue