-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gulp-sourcemap not working after using clean css. #29
Comments
I don't believe you can use the api's together this way and expect the correct results. Try the following...
You need to call Here is one issue that you could peek at How to use in combination with gulp-sass |
Thank you scniro for your reply. but I'd already tried and unfortunately this is not working |
Sorry, I don't have enough info here to determine one way or another if your difficulties can be traced back to gulp-clean-css. If you create a sample repo which clearly reproduces this issue and you tell me your expected results - I'll happily clone it and investigate. |
Hello there,
I've been trying for to minify css using gulp-clean-css with sourcemap but it's not working. Line numbers are wrong while I'm trying to debug in chrome developers tool but If I skip the cleancss() part, it's working as expected. Is this issue of gulp-clean css? or what? below is my gulp file.
Thanks
var gulp = require('gulp');
var less = require('gulp-less');
var sourcemaps= require("gulp-sourcemaps");
var cleancss = require('gulp-clean-css');
gulp.task('bundle:less', function() {
console.log(less);
return gulp.src('themes/'+theme+'/css/style.less')
.pipe(sourcemaps.init())
.pipe(less())
.pipe(cleancss())
.pipe(sourcemaps.write('./'))
.pipe(gulp.dest('www/themes/'+theme+'/css'));
});
gulp.task("default",['bundle:less']);
The text was updated successfully, but these errors were encountered: