From: Augusto Stoffel <arstoffel@gmail.com>
To: Stefan Kangas <stefankangas@gmail.com>
Cc: Philip Kaludercic <philipk@posteo.net>,
"emacs-devel@gnu.org" <emacs-devel@gnu.org>
Subject: Re: ELPA submission: mathjax.el
Date: Wed, 23 Oct 2024 17:28:29 +0200 [thread overview]
Message-ID: <87ed466dpe.fsf@gmail.com> (raw)
In-Reply-To: <CADwFkm=0aLeFTSxDni5BuCqb7BUEaNAMCQ_tmjspeWb7_q3q=A@mail.gmail.com> (Stefan Kangas's message of "Wed, 23 Oct 2024 07:02:53 -0700")
On Wed, 23 Oct 2024 at 07:02, Stefan Kangas wrote:
> Philip Kaludercic <philipk@posteo.net> writes:
>
>>> More specifically, there's a 2.3 MB minified JavaScript file that is
>>> committed to the repo and I will take care to update when the "real"
>>> source (also in the repo, of course) changes.
>>
>> Is there any reason to choose the minified version? Also, do you know
>> if you could support KaTeX as well? AFAIK it is more lightweight
>> (though the package name might be confusing in that case).
>
> I don't feel comfortable with distributing a 2.3 MB minified JavaScript
> file, unless it is generated from source code either as part of the
> package build process on GNU ELPA,
Ah sure, what you suggest is of course much better -- I didn't think
ELPA might be capable of building stuff. Either of those would be
possible in my case:
A. If the build environment has Node/npm, all that is needed is to run
make math2svg.js.
B. If the build environment can run containers, I can include a suitable
Dockerfile.
> or during the package installation on users' machines.
This is not an option in my opinion. It doesn't "just work", instead
requiring the user to execute a build step, and the download is 40 times
larger than the minified JS.
> Could we work on resolving that?
I'd be happy to. If neither options A. or B. are currently available, I
would say implementing B. is a good approach in general for packages
that require a build step.
next prev parent reply other threads:[~2024-10-23 15:28 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-12 14:35 ELPA submission: mathjax.el Augusto Stoffel
2024-10-17 3:54 ` Richard Stallman
2024-10-17 4:27 ` Augusto Stoffel
2024-10-23 7:23 ` Philip Kaludercic
2024-10-23 14:02 ` Stefan Kangas
2024-10-23 15:28 ` Augusto Stoffel [this message]
2024-10-23 19:04 ` Philip Kaludercic
2024-10-23 15:35 ` Augusto Stoffel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ed466dpe.fsf@gmail.com \
--to=arstoffel@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=philipk@posteo.net \
--cc=stefankangas@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).