Skip to content
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

Sourcemaps not ending up in the stream #119

Open
thany opened this issue Jan 7, 2016 · 0 comments
Open

Sourcemaps not ending up in the stream #119

thany opened this issue Jan 7, 2016 · 0 comments

Comments

@thany
Copy link

thany commented Jan 7, 2016

Please consider this task:

gulp.task("dist-build-css", () => {
  /* Compile Sass files using compass to the `css` directory, including sourcemaps and excluding line comments */
  return gulp.src([ "includes/sass/**/*.scss", "!includes/sass/**/_*.scss" ])
    .pipe(
      compass({
        sass: "includes/sass",
        css: "includes/css",
        style: "compressed",
        comments: true,
        sourcemap: true
      })
    )
    .pipe(gulp.dest("dist/includes/css"))
  ;
});

The problem here is that the sourcemap does not end up in the dist/includes/css directory, quite possibly because it's not included in the stream after compass() is done. This will make trouble if I need to further process it, for example if I want to fingerprint the files.

The config options css and sass are identical to my config.rb file, as instructed. When I set css to my dist directory, the sourcemap ends up there as expected, but it's still not included in the stream, so it won't be picked up by any subsequent plugins...

Or should I be using gulp-sourcemap to generate sourcemaps? That'll be trouble as well, since I need to exclude sass includes (starting with _) but they do need to go into sourcemaps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant