Just commit all of family home before editing 'cause i just accidentally overwrote gaeastohuaosneuh
This commit is contained in:
parent
18bba535b4
commit
84de7930cb
64 changed files with 15325 additions and 0 deletions
42
web/themes/custom/geofresco/gulp-tasks/concat.js
Normal file
42
web/themes/custom/geofresco/gulp-tasks/concat.js
Normal file
|
@ -0,0 +1,42 @@
|
|||
/*eslint strict: ["error", "global"]*/
|
||||
'use strict';
|
||||
|
||||
//=======================================================
|
||||
// Include gulp
|
||||
//=======================================================
|
||||
var gulp = require('gulp');
|
||||
|
||||
//=======================================================
|
||||
// Include Our Plugins
|
||||
//=======================================================
|
||||
var concat = require('gulp-concat');
|
||||
var order = require('gulp-order');
|
||||
var sync = require('browser-sync');
|
||||
|
||||
// Export our tasks.
|
||||
module.exports = {
|
||||
|
||||
// Concat all CSS into a master bundle.
|
||||
css: function() {
|
||||
return gulp.src([
|
||||
'./dist/css/*.css'
|
||||
])
|
||||
// Reorder the files so global is first.
|
||||
// If you need to get fancier with the order here's an example:
|
||||
// .pipe(order([
|
||||
// 'dist/css/global.css',
|
||||
// 'src/components/**/*.css',
|
||||
// 'dist/css/btn.css',
|
||||
// 'dist/css/form-item.css',
|
||||
// 'dist/css/form-float-label.css',
|
||||
// 'dist/css/*.css'
|
||||
// ], { base: './' }))
|
||||
.pipe(order([
|
||||
'dist/css/global.css',
|
||||
'dist/css/*.css'
|
||||
], { base: './' }))
|
||||
.pipe(concat('all.css'))
|
||||
.pipe(gulp.dest('./dist/all'))
|
||||
.pipe(sync.stream());
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue