How to bundle KaTeX CSS to a single output CSS with webpack? #3115
-
I would like to produce a single bundled CSS file. In the example below, normalize works if I comment out the KaTeX part, so I know I'm on the right track, but I haven't managed to get the KaTeX part to work. First I tried: main.scss
webpack.config.js
package.json
which fails with:
presumably because
and This was asked at: https://stackoverflow.com/questions/54042335/webpack-and-fonts-with-relative-paths so then I tried to use
asking at: bholloway/resolve-url-loader#212 Any clues? Also asked at: https://stackoverflow.com/questions/68366936/how-to-bundle-katex-css-to-a-single-output-css-with-webpack |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 17 replies
-
Any chance you can use |
Beta Was this translation helpful? Give feedback.
-
Yes correct, Im doing this for Mathleaks :)
…On Tue, 12 Oct 2021 at 17:10, cirosantilli ***@***.***> wrote:
@HenrikStaaf <https://github.com/HenrikStaaf> ah I see. Yeah, I suppose
this is a hard problem, besides the more obvious options of either going
more native (will browsers every support mathml??) or going more reactive
and do it on Js after HTML page render (and thus become mathjax slow load
horror). Out of curiosity, is this for Mathleaks BTW/are you
https://www.linkedin.com/in/henrik-s-a15b6b67/ ? Interesting project.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3115 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGHMRTXR3VPXS7M2EYJMNQ3UGRFWVANCNFSM5AJS3YLQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Beta Was this translation helpful? Give feedback.
-
The amazing maintainer of resolve-url-loader pointed me out the solution: bholloway/resolve-url-loader#212 (comment) needed to add |
Beta Was this translation helpful? Give feedback.
The amazing maintainer of resolve-url-loader pointed me out the solution: bholloway/resolve-url-loader#212 (comment) needed to add
{sourceMap: true}
working example at: https://github.com/cirosantilli/cirosantilli.github.io/tree/c4a93c23e9e009a0a36e76673d167c6149295dec/web-cheat/webpack/sass cc. @HenrikStaaf @edemaine