johnpapa / gulp-patterns

Playground for Gulp Recipes
501 stars 146 forks source link

Initial sourcemaps support. #88

Closed igorlino closed 8 years ago

igorlino commented 9 years ago

Corrected problem with the gulp-less. Updated a couple of libraries to their latest version.

Unfortunately the sourcemaps files don't match since the gulp-rev-replace is not able to mmm, rename properly the filenames.

So one needs to comment: .pipe($.rev()) .pipe($.revReplace())

of the 'optimize' target, so the nasty renaming bug does not affect the sourceMappingURL

igorlino commented 9 years ago

Probably a quite important feature, since the highly optimized output of CSS and JS cannot be debugged in a production environment.

http://blog.teamtreehouse.com/introduction-source-maps

igorlino commented 9 years ago

Ah yes, I forgot to mentioned, I removed/replaced the usage of gulp-csso because it does not support sourcemaps and it has quite low maintenance.

Enter minify-css. Wich supports sourcemaps and has active development. :)

Optimized CSS output is still the same good.