Adjust sass process for import globbing (to limit multiple imports).

This commit is contained in:
Christopher Charbonneau Wells 2017-08-21 11:43:12 -04:00
parent b05b268c7e
commit b02752f52f
6 changed files with 12 additions and 6 deletions

View File

@ -1 +0,0 @@
$body-bg: $white;

View File

@ -0,0 +1 @@
/* Baby Blotter site-wide custom functions. */

View File

@ -0,0 +1,3 @@
@import "../../../node_modules/bootstrap/scss/mixins";
/* Baby Blotter site-wide custom mixins. */

View File

@ -1,4 +1,7 @@
@import "functions";
@import "variables";
@import "custom";
@import "mixins";
@import "global";
@import "../../../node_modules/bootstrap/scss/bootstrap";
@import "../../../**/static/scss/*.scss";

View File

@ -4,6 +4,7 @@ var concat = require('gulp-concat');
var csso = require('gulp-csso');
var pump = require('pump');
var sass = require('gulp-sass');
var sassGlob = require('gulp-sass-glob');
var uglify = require('gulp-uglify');
/* APP FILES */
@ -21,10 +22,8 @@ gulp.task('app:scripts', function() {
gulp.task('app:styles', function (cb) {
pump([
gulp.src([
'babyblotter/static_site/scss/babyblotter.scss',
'*/static/scss/*.scss'
]),
gulp.src('babyblotter/static_site/scss/babyblotter.scss'),
sassGlob(),
sass().on('error', sass.logError),
concat('app.css'),
gulp.dest('babyblotter/static/babyblotter/css/')

View File

@ -9,6 +9,7 @@
"gulp-concat": "^2.6.1",
"gulp-csso": "^3.0.0",
"gulp-sass": "^3.1.0",
"gulp-sass-glob": "^1.0.8",
"gulp-uglify": "^3.0.0",
"jquery": "^3.2.1",
"moment": "^2.18.1",