From b7e33d73c1133b8534ff91d35bdfa16c31d71167 Mon Sep 17 00:00:00 2001 From: David Calavera Date: Fri, 14 Apr 2017 08:40:53 -0700 Subject: [PATCH] Flip CSS tasks order to parse custom imports This will allow people to set custom imports in their css files. --- gulpfile.babel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gulpfile.babel.js b/gulpfile.babel.js index 2b62726..8aafe62 100644 --- a/gulpfile.babel.js +++ b/gulpfile.babel.js @@ -20,7 +20,7 @@ gulp.task("build-preview", ["css", "js", "hugo-preview"]); gulp.task("css", () => ( gulp.src("./src/css/*.css") - .pipe(postcss([cssnext(), cssImport({from: "./src/css/main.css"})])) + .pipe(postcss([cssImport({from: "./src/css/main.css"}), cssnext()])) .pipe(gulp.dest("./dist/css")) .pipe(browserSync.stream()) ));