-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
The index.html is minified and breaks some automation #17330
Comments
@fooness it would be great if this issue was written in a way where we were inclined to interact with it. Confrontational titles, unexplained asks for reverting a change, and assumption that this is intentional all make this undesirable to look at. |
pretty sure it is quite proper & valid; https://validator.w3.org/nu/?doc=https%3A%2F%2Fapp.element.io%2F doesn't complain about the formatting of the file.
This was not an intentional change, but likely caused by a dependency being upgraded.
Your scripts were brittle then.
Please report these specifically because this should not be happening.
Not impossible at all, you just have to write more resilient scripts that don't break when handed VALID HTML. |
The content of the This document minification was not done on purpose, but instead it happened as a side effect of upgrading. We would happily accept a PR to fix this, but it is also not a priority for the core team. |
@turt2live @t3chguy @jryans Pardon if this was a little bit harsh and direct. It’s just rather frustrating that established things in Element are oftentimes changed without detailed upgrade notes and oftentimes introduce some problems for people that want to make use of Element’s customisation features. Sorry for the strong words.
This makes me hope that we might get back the multi-line
This is partly true; script that rely on e.g. replacing or adding lines kinda don’t work anymore when there’s no more than one single line in a file to work with.
We’re super happy to hear so. Is there any research/preparation work I could to for someone else to make the PR? |
Maybe |
Unlikely. We only call |
Oh, okay sure … sanitizing user input indeed makes way more sense, than sanitizing code from the repo itself. Sorry. Unfortunately, after looking through the last changelogs and pull request as well as searching for PS: This did not happen in element-web |
Likelu somewhere in https://github.com/vector-im/element-web/commits/develop/yarn.lock |
The changes here look rather cryptic to me; lots of version/hash changes … It seems that element-web So the issue should be somwhere here, right? v1.7.26...v1.7.27-rc.1 |
Unfortunately the link does not work for me. It seems that a package called Could this be the culprit? |
Sure, it could. That's a dependency of a dependency (of a dependency?) |
I think I might have found the problem. From the README of So, if I don’t understand this completely wrong … could the following line be changed to https://github.com/vector-im/element-web/blob/develop/webpack.config.js#L389 PS: There’s some more lines like these, for different files it seems.
|
Fixed in #17349 and therefore closed. |
The minified
index.html
(all content in one single line) in Element-Webv1.7.28
(and maybe one or two versions prior) completely breaks (our) Ansible-automated installation and configuration scripts.Can this please be reverted? Element still offers no proper way of customisation and almost any new elements that are introduced use hardcoded color values instead of existing color variables … it’s simple not possible to properly modify element with just the color variable definitions in
config.json
, and now breaking the proper HTML-structure inindex.html
even makes it close to impossible to automatically change/add contents in that file, like e.g. adding custom css.Please revert this to non-minified, proper HTML.
The text was updated successfully, but these errors were encountered: