angular - Gulp - Generate Output CSS files in Same Direcotry as of SCSS file -
i using gulp compile scss, uglify , concat , doing when try output in 1 specific file.
but want achieve gulp shall output css files in same directory of scss file.
eg.
src | app | folder1 | style1.scss style1.css folder2 | style2.scss style2.css
what doing right below gulp file
var gulp = require("gulp"); var uglify = require("gulp-uglify"); var concat = require("gulp-concat"); var sass = require("gulp-sass"); var debug = require("gulp-debug"); gulp.task('css', function () { gulp.src( "/*.scss" ).pipe(concat('styles.css')) pipe(sass().on('error', sass.logerror)) .pipe(debug({ title: 'unicorn:' })) .pipe(gulp.dest("./src")); }) gulp.task('minify', ['css', 'default']); gulp.task('default', function () { console.log("default task"); })
this generated css file in src
directory. need different approach.
Comments
Post a Comment