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

Allow specify dest sourcemaps option as string #160

Merged
merged 2 commits into from
Feb 28, 2016
Merged

Allow specify dest sourcemaps option as string #160

merged 2 commits into from
Feb 28, 2016

Conversation

TrySound
Copy link
Contributor

I think this will be much prettier and consistently.

gulp.src('path', { sourcemaps: true })
  .pipe(gulp.dest('path', { sourcemaps: '.' }));

@@ -226,7 +224,7 @@ vfs.dest('./', {
});
```

Type: `Boolean` or `Object`
Type: `Boolean`, `String` or `Object`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs more docs on what each type does

@TrySound
Copy link
Contributor Author

@contra Done.

@@ -199,7 +199,8 @@ Default: `true` (always overwrite existing files)

##### `options.sourcemaps`

Enables sourcemap support on files passed through the stream. Will write inline soucemaps if specified as `true`. Uses [gulp-sourcemaps] under the hood.
Enables sourcemap support on files passed through the stream. Will write inline soucemaps if specified as `true`.
Will write sourcemaps file in relative to destination folder if specified as `string`. Uses [gulp-sourcemaps] under the hood.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be clearer to say "Specifying a string is shorthand for the path option"

@TrySound
Copy link
Contributor Author

Fixed.

yocontra pushed a commit that referenced this pull request Feb 28, 2016
Allow specify dest sourcemaps option as string
@yocontra yocontra merged commit 4c0288f into gulpjs:master Feb 28, 2016
@TrySound
Copy link
Contributor Author

@contra Will you publish patch release?

@phated
Copy link
Member

phated commented Feb 28, 2016

This requires a minor release

@TrySound
Copy link
Contributor Author

@phated Oh, sure.

@TrySound TrySound deleted the sourcemaps-string branch February 28, 2016 15:33
@phated
Copy link
Member

phated commented Mar 1, 2016

I tagged this. Will publish sometime after the CI tests run

@TrySound
Copy link
Contributor Author

TrySound commented Mar 1, 2016

But tests are already passed in CI.

@phated
Copy link
Member

phated commented Mar 2, 2016

Published as 2.4.0

@TrySound
Copy link
Contributor Author

TrySound commented Mar 2, 2016

Nice. Thanks.

phated pushed a commit that referenced this pull request Dec 5, 2017
Allow specify dest sourcemaps option as string
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

Successfully merging this pull request may close these issues.

3 participants