<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[NPM script to bundle the server and the client]]></title><description><![CDATA[<p dir="auto">I am wondering whether there is a script to bundle the server app and the client app of MM, so that they are minified in 2 to 10 files or more, but not 10.000.<br />
I have just found this <a href="https://github.com/MagicMirrorOrg/MagicMirror/issues/1174" target="_blank" rel="noopener noreferrer nofollow ugc">discussion</a>, which seems old and closed.</p>
<p dir="auto">Would you help answering this question?</p>
]]></description><link>https://forum.magicmirror.builders/topic/19142/npm-script-to-bundle-the-server-and-the-client</link><generator>RSS for Node</generator><lastBuildDate>Sat, 16 May 2026 23:22:32 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/19142.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 16 Nov 2024 12:00:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to NPM script to bundle the server and the client on Thu, 03 Jul 2025 11:31:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/tammieda" aria-label="Profile: Tammieda">@<bdi>Tammieda</bdi></a> i am not the OP and i dont see how this would work.</p>
<p dir="auto">its been 7 years since the original discussion, and no example  has been forthcoming</p>
<p dir="auto">anyhow the MagicMirror team is not working on this.<br />
anyone else is welcome to  experiment and post issues</p>
]]></description><link>https://forum.magicmirror.builders/post/127208</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/127208</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Thu, 03 Jul 2025 11:31:47 GMT</pubDate></item><item><title><![CDATA[Reply to NPM script to bundle the server and the client on Thu, 03 Jul 2025 02:04:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> You could try using a build tool like Webpack or Vite to bundle both server and client apps into fewer, optimized files. Have you checked if there’s an existing config or plugin for MM that supports this, or would you need help setting one up from scratch?</p>
]]></description><link>https://forum.magicmirror.builders/post/127207</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/127207</guid><dc:creator><![CDATA[Tammieda]]></dc:creator><pubDate>Thu, 03 Jul 2025 02:04:26 GMT</pubDate></item><item><title><![CDATA[Reply to NPM script to bundle the server and the client on Mon, 18 Nov 2024 12:32:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/simonemsr" aria-label="Profile: SimoneMSR">@<bdi>SimoneMSR</bdi></a> we don’t run on Android. So I’m not sure we are talking about the same thing</p>
<p dir="auto">MagicMirror is a single page web server. The page is composed of live JavaScript code in multiple modules  to dynamically render their little bits of the page at runtime</p>
<p dir="auto">So you would download the empty MagicMirror project somewhere. Add modules, configure the modules. Test<br />
And distribute that. Or make that the server the client devices connect to using the native device browser, which they would already have</p>
]]></description><link>https://forum.magicmirror.builders/post/121382</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/121382</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Mon, 18 Nov 2024 12:32:49 GMT</pubDate></item><item><title><![CDATA[Reply to NPM script to bundle the server and the client on Mon, 18 Nov 2024 10:24:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> Hello Sam,<br />
thanks for the question, that I will answer now. I see your point, but I am working with a company that has several devices, and the deploy can be long.</p>
<p dir="auto">I would like to fasten the upload of source code into my device. Up to now, the upload can stand for 30minutes or more, and on android, I have to make an additional 30minutes move to the Termux app folders, in order for me to run MM on that device.</p>
<p dir="auto">Thank you for the help</p>
]]></description><link>https://forum.magicmirror.builders/post/121381</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/121381</guid><dc:creator><![CDATA[SimoneMSR]]></dc:creator><pubDate>Mon, 18 Nov 2024 10:24:51 GMT</pubDate></item><item><title><![CDATA[Reply to NPM script to bundle the server and the client on Mon, 18 Nov 2024 12:17:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/simonemsr" aria-label="Profile: SimoneMSR">@<bdi>SimoneMSR</bdi></a> why do you want this?<br />
what is the problem you are trying to solve?</p>
<p dir="auto">we are not trying to make our disk size smaller<br />
nor our memory footprint<br />
nor protecting our ip w minify</p>
<p dir="auto">how do you do as a bundle and have it extendable/configurable by the user</p>
<p dir="auto">the vast majority of our runtime code is in handling the placement of content in the dom.<br />
there is a bunch of onetime convert from text to operational data. then trigger each module to do its  thing, call us when you have new content</p>
<p dir="auto">packaging is for distribution for multiple users and ‘minimize’ the number of files sent over the network,<br />
but this is all private network not public, and the amount of data moved over the local network is minuscule  as the ui and the app are on the same machine 99% of the time</p>
<p dir="auto">this wouldn’t affect the sourcing of data by the modules. but again this is a tiny amount of data<br />
used by a single user</p>
]]></description><link>https://forum.magicmirror.builders/post/121340</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/121340</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Mon, 18 Nov 2024 12:17:26 GMT</pubDate></item></channel></rss>