google / google/closure-compiler

Ability to use %outname% within --outer_wrapper

Open
#505 1 comment 0 reactions 0 assignees View on GitHub
enhancement P3
Dominant language
JavaScript
Stars
7.7k
Forks
1.2k
Avg merge
2d 12h
Merged PRs (30d)
6

Description

I'm interested in defining source maps via the command line at the same time I compile my files, using the argument " --create_source_map %%outname%%.map". Meanwhile, I'd like to automatically append the sourceMappingURL in the same command. However, after a cursory walk through AbstractCommandLineRunner.java, it doesn't look like the %outname% marker is available within --outer_wrapper.

Essentially, what I'd like to be able to do (and don't think I can) is this:
" --outer_wrapper='%%output%%//# sourceMappingURL=%%outname%%.map'"

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.