Closed tinkertrain closed 9 years ago
:+1:
:+1:
I modified a little bit task 'styles' and now i got sourcemaps working
But no idea if this is proper way to do this but it works
gulp.task('styles', function(){
gulp.src(['Resources/public/stylesheets/**/*.scss'])
.pipe(sourcemaps.init())
.pipe(plumber({
errorHandler: function (error) {
console.log(error.message);
this.emit('end');
}}))
.pipe(sass({sourcemap: true}))
.pipe(autoprefixer('last 2 versions'))
.pipe(gulp.dest('Resources/public/dist/stylesheets/'))
.pipe(rename({suffix: '.min'}))
.pipe(minifycss())
.pipe(sourcemaps.write())
.pipe(gulp.dest('Resources/public/dist/stylesheets/'))
.pipe(browserSync.reload({stream:true}))
});
And afcors at the top
var sourcemaps = require('gulp-sourcemaps');
:+1:
@dewugjeEsc works like a charm... This should be added as a option in the generator if you ask me
I agree that this should be an option... it's a pretty standard feature, imo.
Sourcemaps generation for css and js would be awesome.
Nice tool btw!