Chat edits to index.css ignored due to pointing to dist/index.css
LukeD1994 opened this issue · 4 comments
Inside ../chat/html/
Index.css seems to either be ignored or only used once, any changes made to this file are not reflected on restart of the chat resource.
However, after looking at the fxmanifest I can see it refers to /dist/index.css and upon further inspection in nui devtools I can see the same, with no reference to the original file.
Took me a while to figure out, copied my changes to /dist/index.css and all was fine in the server again after restart command.
Not sure if this is an issue or not, just reporting my findings as it appears to be duplicating a file and ignoring the first one.
Hi Luke, please correct me if I'm mistaken. dist
is the build directory for the chat resource. Hence why it points to the build directory.
So you'd either have to rebuild the chat ui when you make changes or edit the built css file (not recommended).
Hope this helps!
Thanks for the reply Arthur, again I'm not sure if it is intended functionality or maybe a simple missed cleanup.
But it seems strange that the chat resource itself would copy a css file and then ignore the first one, when it could just reference the first one, obviously if it's build behaviour then it makes more sense I guess.
Either way I now know how to deal with it :)
hi! i have the same problem, how i rebuid the chat?
Any updates? I've been battling making chat transparent for a week now and just found this issue. Kinda annoying how restrictive chat resource is, I get that people break it but there should be some minimum config file to change color, font type and size and size of the chat/message box etc?