I'd like to merge all of my scss
files into one compressed css
file:
Structure:
- stylesheets/
- test.scss
- test2.scss
- gulpfile.js
I tried this two tasks, which I found in several answers and tutorials, but I always got the scss
file into a duplicated css
file:
gulp.task('sass', function() {
return gulp.src('stylesheets/**/*.scss')
.pipe(sass())
.pipe(gulp.dest('css/'))
});
and
gulp.task('sass', function() {
return gulp.src('stylesheets/**/*.scss')
.pipe(sass())
.pipe(gulp.dest('css/styles.css'))
});
!!! EFFECTIV RESULT !!!
- stylesheets/
- test.scss
- test2.scss
- css/
- test.css
- test2.css
- gulpfile.js
or with second tried task:
- stylesheets/
- test.scss
- test2.scss
- css/styles.css/
- test.css
- test2.css
- gulpfile.js
??? EXPECTED RESULT ???
- stylesheets/
- test.scss
- test2.scss
- css/
- styles.css
- gulpfile.js
Any ideas?