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

add an option to specify file extension #179

Open
SEIAROTg opened this issue Feb 2, 2016 · 3 comments
Open

add an option to specify file extension #179

SEIAROTg opened this issue Feb 2, 2016 · 3 comments

Comments

@SEIAROTg
Copy link

SEIAROTg commented Feb 2, 2016

When processing an file without extension name, gulp-sourcemaps will not add comment after the code. However, sometimes we need to deal with some js files without extension names (e.g. bin/www generated by express-generator). In this case, I hope there can be an option to manually specify the extension.

@phated
Copy link
Contributor

phated commented Mar 13, 2017

I actually think the default to add no comment is wrong. Willing to accept a PR to always add the comment.

@nmccready
Copy link
Collaborator

#347 seems related, is this to support alternative extensions or is this more of a file map to assign an extension to a specify a file without one?

Either way I think the code for this could be banged out in the same PR.

@domoritz
Copy link

Is there a current workaround to support mjs and cjs files other than renaming files and replacing .js in the generated source maps after the source maps have been generated?

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

No branches or pull requests

4 participants