[LRUG] Troubleshoot asset pipeline with webpacker
Martin Tomov
mtomov at outlook.com
Tue May 23 03:21:45 PDT 2023
Hey Ed,
My team at Beam had recently migrated from Webpack to Vite - https://vite-ruby.netlify.app/guide/
Vite is specific for Vuejs and the integration with Rails is really good. You have HMR for Vue components.
Alternatively, you can go with js-bundling and esbuild. Jumpstart pro by Chris Oliver has this setup, and it works rather well .. auto page refresh, but no HMR.
I'd recommend to migrate away from Webpack - it is lots trouble with much better alternatives existing nowadays.
Hope this helps!
Bw, Martin
________________________________
From: Chat <chat-bounces at lists.lrug.org> on behalf of Ed James <ed.james.spam at gmail.com>
Sent: 23 May 2023 10:31 AM
To: chat at lists.lrug.org <chat at lists.lrug.org>
Subject: [LRUG] Troubleshoot asset pipeline with webpacker
Hi LRUG
We have a custom internal NPM package for our front-end, which contains both CSS and VueJS assets. For months now our CircleCI build has been stable but we recently added a few more components to the package (benign stuff, simple).
We now have a build which consistently fails when compiling assets because of a RAM overflow i.e. we are suddenly exceeding our CircleCI RAM limit, which is 16GB!
We’ve run out of experiments and seems to have exhausted all avenues for fixing this. We are primarily a back-end team so we have no specialist webpacker/asset-pipeline knowledge in the team.
If anyone is willing to have a brief chat to run through any other potential gotchas/options, I would greatly appreciate it.
I did find this article particularly interesting, but our lack of asset-pipeline knowledge limit us from progressing down this route (which seems promising): https://rossta.net/blog/overpacking-a-common-webpacker-mistake.html
Thanks!
________________________________
[http://ej-public.s3.amazonaws.com/images/rubbish.png] Ed James
I will respect your spam<mailto:ed.james.spam at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lrug.org/pipermail/chat-lrug.org/attachments/20230523/663ec2da/attachment.htm>
More information about the Chat
mailing list