mirror of
https://github.com/prurigro/hypothetical.git
synced 2024-11-22 07:54:11 -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;
|
process.env.DISABLE_NOTIFIER = true;
|
||||||
|
|
||||||
var gulp = require("gulp");
|
var gulp = require("gulp"),
|
||||||
var elixir = require('laravel-elixir');
|
elixir = require('laravel-elixir'),
|
||||||
|
lessglob = require('less-plugin-glob');
|
||||||
|
|
||||||
// require livereload when not production
|
// require livereload when not production
|
||||||
if (!elixir.config.production)
|
if (!elixir.config.production)
|
||||||
require('laravel-elixir-livereload');
|
require('laravel-elixir-livereload');
|
||||||
|
|
||||||
// autoprefixer settings
|
// 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/
|
// javascript files in resources/assets/js/
|
||||||
var jsLocal = [
|
var jsLocal = [
|
||||||
|
@ -30,7 +35,10 @@ var lessPaths = [
|
||||||
elixir(function(mix) {
|
elixir(function(mix) {
|
||||||
// elixir mix functions
|
// elixir mix functions
|
||||||
mix.copy('bower_components/bootstrap/dist/fonts/bootstrap/**', 'public/fonts')
|
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(jsLocal, 'public/js/app.js', 'resources/assets/js/')
|
||||||
.scripts(jsBower, 'public/js/lib.js', 'bower_components/')
|
.scripts(jsBower, 'public/js/lib.js', 'bower_components/')
|
||||||
.version(['css/app.css', 'js/app.js', 'js/lib.js']);
|
.version(['css/app.css', 'js/app.js', 'js/lib.js']);
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"gulp": "^3.9.0",
|
"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