-
Notifications
You must be signed in to change notification settings - Fork 174
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
lib/install/tailwindcss.rb
assumes newline at end of app/assets/config/manifest.js
#402
Comments
@litchk Thanks for reporting this! Yes, that approach seems fine to me and I'd be very grateful if you opened a pull request. Thank you! |
Sure thing, and will do. Do you have any opinions on how to test the fix within the context of the current test setup? I think ideally a test would check that a
(3) doesn't really do anything different, but I like the idea of testing against what I could follow the model of By the way, I think I should fix/test the same thing for Let me know if you have any opinions here, if not can just make a call and you can let me know your thoughts on the result. |
@litchk Thanks for asking about testing ... this feels like enough of an edge case, and integration testing with the user journey is challenging enough (and takes SO LONG on windows!🙄), that I'm OK skipping test coverage here. |
If there is no newline at the end of
app/assets/config/manifest.js
,append_to_file
in the following codeblock will add//= link_tree ../builds
to the end of the last line, breaking the build with aprocess_link_tree_directive
error:I think the simplest fix would be to add a newline to the start of the line added by
append_to_file
, aslib/install/tailwindcss.rb
does for theappend_to_file
call targeting.gitignore
:This will result in extra whitespace sometimes in
app/assets/config/manifest.js
, but that doesn't appear to be semantically significant.If the maintainers agree with this approach, I'd be happy to open a PR to fix. Thanks for reading and for the work you do on this great gem ❤️
The text was updated successfully, but these errors were encountered: