-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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 resources.Put(targetPath) #7406
Comments
This is a great idea. Now when I read Unless it's programatically crazy to use Also, whenever dealing with temporary files (php upload etc...), people are used to |
You kind of do if you construct it like this:
I kind of like |
Addressed by #9920 |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
See discussion in: https://discourse.gohugo.io/t/babel-ts-file-extension-remains-ts/26318/6
I answered a little hasty in that thread, as I had forgot my own API in this area. For
ToCSS
we have aTargetPath
option, for babel and postCSS we have not (mostly because, I think, I assumed you would want the same path as the input).Instead of adding TargetPath to every transformer function that could potentially need it, I suggest we add a
resources.Copy
function that takes thetargetPath
as the only argument. So you could do:Note that a current workaround for the above would be:
@regisphilibert -- the master of naming things, do you think the above is a good idea and that the function name is good?
The text was updated successfully, but these errors were encountered: