Skip to content
This repository has been archived by the owner on Apr 7, 2023. It is now read-only.

Chat edits to index.css ignored due to pointing to dist/index.css #162

Open
LukeD1994 opened this issue Mar 24, 2021 · 4 comments
Open

Chat edits to index.css ignored due to pointing to dist/index.css #162

LukeD1994 opened this issue Mar 24, 2021 · 4 comments

Comments

@LukeD1994
Copy link

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.

@arthur-rl
Copy link

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!

@LukeD1994
Copy link
Author

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 :)

@pivitron
Copy link

hi! i have the same problem, how i rebuid the chat?

@nzkfc
Copy link

nzkfc commented Jul 15, 2021

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants