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
Error on overwriting file with minified content #61
Comments
Why don't use:
|
I do in fact use that. Perhaps "remove the original" is a bit poorly worded when I meant "overwrite", but I digress. Feature would certainly be nice regardless, certainly there are work arounds in the mean time so low priority. |
That's a good idea for a pull request :). |
I did end up getting something together, not sure what ended up happening to it. If I find some time I'll do it again, but as I'm not using |
This is actually an issue in Bash. Short of adding a flag called something like --overwrite-source that minifies, then writes the files back over themselves this project cannot support this. @coderaiser What are your thoughts? would you be interested in a PR to that effect? |
@code-forger yes, that's amazing idea for a PR :). |
Closed due to a long time of inactivity 🏝 |
I'd like to use this tool in my CD pipeline to overwrite a simple HTML file I have for a site. However, using the same input & output throws an error and does not succeed.
As this is the very last step in a deploy I really have no need to keep the original, unminified version around, so overwriting is ideal. As of now I have to write, remove the original, and then rename the minified version, which is a bit of an annoyance.
I'll take a look myself, see if I can't get something together to resolve this.
The text was updated successfully, but these errors were encountered: