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

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -