-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
support template string JS output #14
Comments
Thanks, I didn't know this syntax! |
@laurentlb You are welcome! :) I've been using template literals in a recent project to store shader code and thought I'll share this tip here. Since I have no experience in F# to create a competent Pull Request, I created the issue in the hope you or somebody else picks it up and add the feature to the project. |
It looks like it should replace the current format. |
For a while template literals have been supported in browsers, which allows us to define multiline strings without the need for escape characters like
\n
.So a minified shader output could simply be outputted multiline, just like
--format none
would do, but with backticks enclosing the text. So instead of, what gets now outputted with--format js
:the same thing could be written via template strings:
Template literals are supported in all mayor browsers for quite some time now. see: https://caniuse.com/#feat=template-literals
The text was updated successfully, but these errors were encountered: