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:
parent
8d7753b63c
commit
b7e33d73c1
|
@ -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())
|
||||||
));
|
));
|
||||||
|
|
Reference in New Issue