Flip CSS tasks order to parse custom imports

This will allow people to set custom imports in their css files.
This commit is contained in:
David Calavera 2017-04-14 08:40:53 -07:00 committed by GitHub
parent 8d7753b63c
commit b7e33d73c1
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ gulp.task("build-preview", ["css", "js", "hugo-preview"]);
gulp.task("css", () => ( gulp.task("css", () => (
gulp.src("./src/css/*.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(gulp.dest("./dist/css"))
.pipe(browserSync.stream()) .pipe(browserSync.stream())
)); ));