Masthash

#Webpack

Jons Mostovojs
3 weeks ago

I was thinking about XML, toml and JSON and I realised that they should be small. As long as they are small, they are readable and comprehensible.

Interestingly, XML scales a little bit better because it reminds you of the context when the context ends.

I really like some systems that incorporate inlining the code into their configs, but I'd prefer for it to go the other way — have configs in code.

The way #elixir and #webpack handle configuration is almost perfect.

robrich
1 month ago

https://github.com/sszczep/chrome-extension-webpack - build #chrome extensions the way you like, and package using #webpack and #babel. Great project https://www.linkedin.com/in/sszczep.

Chris Minnick
2 months ago

My latest (and greatest) book, JavaScript All-in-One For Dummies, is available now!

Every junior developer or aspiring JS developer needs this book, imho.

The book teaches modern #JavaScript, how browsers work, using #VSCode like a pro, #Git, #prettier, #eslint, #vite, #webpack, #react, #vue, #svelte, #http, #jest, #node, #express, #mongodb, #mongoose, and finishes with a chapter on authentication with #jwt.

It took me 6 months to write and is over 800 pages.

https://amzn.to/3GIMRGX

Michael van Laar
2 months ago

Phew, I know why I hate setting up and maintaining build tool chains. TailwindCSS nested in PostCSS nested in Webpack and stuff like taht is not exactly what I would call fun, when coding.

#WebDev #Webpack #TailwindCSS #PostCSS

Pixelcode 🇺🇦🕊️
2 months ago

Thanks to #Webpack, I was able to reduce my 130 kB #TypeScript web app to 280 kB in #JavaScript. 👍

Djumaka
2 months ago

Why running #symfony with bootstrap via #webpack encore is such a pain. Straight from the tutorial and ... everything is a mess.

NullVoxPopuli
3 months ago

Using embroider in #EmberJS, folks often ask, "How do I do build time transforms"?

✨The answer: *unplugin*. 🦾

Be resistant to changes in packagers.
Be ready for Vite 🥳

Docs here: https://github.com/unjs/unplugin
#JavaScript #unplugin #rollup #webpack #vite

Combustible Lemon
3 months ago

Fucking #JavaScript

I have some functions in a module: https://github.com/pikesley/carbwire/blob/main/site/public/js/carbwire.js

Putting them in a nice module like this means I can write tests for them https://github.com/pikesley/carbwire/blob/main/site/tests/carbwire.test.js and pretend to be a proper software engineer

So my question is, HOW THE FUCK DO I USE THESE FUNCTIONS CLIENT-SIDE?

I have a horrible feeling the answer involves fucking #webpack or some shit

🌈 Lascapi
3 months ago

I'm looking for a #database of #software, #framework, #library and #plugin version where I can found for example which version of #webpack I can use with #angular8 and with which version of #typescript and #nodejs. ( #realWorld example 😅 ).

A bit like https://gist.github.com/LayZeeDK/c822cc812f75bb07b7c55d07ba2719b3

Any idea?

#freeSoftware #openSource #data #web #question

Chris Minnick
3 months ago

I just finished the final review of my new book (coming in May): JavaScript All-In-One For Dummies. This one has been my dream to write for over a decade, and I've been working on it for 10 months.

When I used to hire junior developers, I'd find myself (and them) overwhelmed with how much they had to know to be to be productive. This book addresses that.

#JavaScript #Git #vscode #React #Vue #Svelte #ESLint #Jest #Node #webapi #express #mongodb #webpack #babel #vite #rest #jwt #micdrop

Inautilo
3 months ago

#Development #Overviews
The most popular build tools for front-end developers in 2023 · Key features and benefits of the top build tools for web development https://ilo.im/11g6au

_____
#WebDevelopment #WebDev #Frontend #Workflow #Collaboration #Automation #Tool #BuildTool #Compiler #Bundler #TaskRunner #JavaScript #TypeScript #Esbuild #Lerna #Nx #Parcel #Rollup #Rome #SWC #Turbo #Vite #Webpack

robrich
3 months ago

https://github.com/eddyerburgh/vue-test-utils-karma-example - getting #karma to work with #webpack (Vue, React, etc) is hard. Nice code sample https://twitter.com/EddYerburgh. Does this work with #Vue 3 CLI projects?

Starting to think it would be nice to have @symfony #Encore running with #vite instead of #webpack...

compiling....

Why do I need #Python(2) to install my #npm dependencies to get #Webpack running to compile three JS files into a single one?

I love my job but there is always this moment ... 😱

🫀Raymundo - bad hombre
3 months ago

Thingy #rollupjs did not manage to spit a bundle from a node library that should include polyfills. I had to ditch it for old well-known #webpack. Now I'll try to optimize as bundle size is massive.

Tom Jowitt
3 months ago

Spent the end of last week helping our frontend devs speed up their build/test/deploy times. I'm a bit rusty on #typescript and #javascript in general but it seems every year these systems add another layer of complexity. It's been a fun couple of days though poking around #yarn #webpack and #jest and hopefully the team are happy with significantly faster builds.

Ich richtete wiederwillig das alt-bekannte feature-creep-monster #webpack ein.

Ich war unglücklich ob der Performance.

Aber dann…

Son
4 months ago

I have been using #Webpack for a few years now and have used it in 5 different commercial products and dozens of personal ones. It never fails to make me frustrated and feel like an idiot. Yet I keep coming back because it does everything I need..

Sascha
4 months ago

Looking for a #PHP #developer fulltime in Germany for Remote. #Job Skill Level: mid DM me.

Techstack:
#PHP
#JS
#npm
#laravel
#bootstrap
#webpack
#docker
#WordPress

NERDDISCO
4 months ago

If nothing is working anymore in your #nextjs project and you see #Webpack #missing #module #error everywhere, get rid of some folders and reinstall the dependencies:

```
rm -fR .next node_modules
npm install
```

I just spend the last couple of hours to find out why my project was not working anymore after installing some dependencies… #cache for the win ❤️

jakenuts
4 months ago

Hey front-end dev 👩‍🚀!

Would you recommend using vite/rollup as opposed to vue-cli/webpack 5 for an app that is largely used by older mobile phone browsers? The documentation for supporting older browsers is clear but very short and almost seems like it’s not an expected use case.

#vite #rollup #vue #webpack #legacy #bundlers

Zac
4 months ago

Maybe I am just dense but would you need Webpack if you just used a simpler development process? Aside from Sass which I just love but mostly because it is easier to read that normal CSS.

#Webpack #WebDev

A screenshot of an image from the Webpack website. 

The title is "bundle your scripts" 

On the left are a series of files with the extensions .js, .hbs, .cjs, .sass and .png is a chaotic arrangement. These are labelled "Modules with Dependencies"

On the right, are single files with the .js, .css, .jpg and .png extension. These are labelled "Statis Assets"
Zac
4 months ago

So this is the "lite" version of the CBC News website. Can someone explain what all of the .js code is on this site? It uses Webpack for something but it all looks like it is... well I can't be sure to be honest.

Anyone have any insight?

#WebDev #Webpack #JavaScript #CBC

https://www.cbc.ca/lite/news/politics?sort=latest

Jeroen van Wissen 🇳🇱/🇫🇷
4 months ago

How is your day going?
#javascript #reactjs #webpack

Jeroen van Wissen 🇳🇱/🇫🇷
4 months ago

Upgrading a Webpack4/React16 project to Webpack5/React18 ... the fun times begin... #javascript #reactjs #webpack

How in the world can I bundle a library in #webpack ?

Heres the situation: Im using sveltekit and have to use vite, a library I am using says to use webpack. I want to compile it in webpack(while keeping it in ts) so I can use it in my vite project to make a mastodon client.

Can someone help me convert this #webpack config to a #vite config. I really hope this lets me compile this lib for the browser. Any help is appreciated :blobcatheart:

https://github.com/h3poteto/megalodon/blob/master/example/browser/webpack.config.js

I use :vim:
4 months ago

When using #babel to #transpile a #nodejs library, is there something you must configure for editor #IntelliSense to work when importing the library? The actual import map is working (I can use modules in my project) but class properties and methods don’t have any IntelliSense in #vscode and in #webstorm class properties are highlighted as “undefined“ (even though they work just fine).

#webdev #question #SoftwareDevlopment #development #bundler #webpack #javascript #typescript #vanillajs

Okay, #Angular and #Webpack Mastodon, I need help moving up from 13 to 15.

My CSS files are no longer supported by Angular. I'm trying to add loaders to process the files, but I keep getting weird errors from what I can only guess are Angular build artifacts.

I used custom-webpack-angular to add a config for loaders for CSS/scss files.

But I'm seeing errors where the sass loader doesn't understand what "imports" are, and the referenced stylesheet isn't actually what exists on disk.

#WebDev

I use :vim:
5 months ago

I’ve gotten a sixth sense to tell when #webpack is going to crash due to a #MemoryLeak

I use :vim:
5 months ago

@thatonecalculator #Webpack is a business requirement at this point.

But maybe a more direct question is, does the library need its own webpack config and should it be built before it's added as a dependency?

I use :vim:
5 months ago

Should #NPM libraries handle #bundling themselves?

I'm working in a library for internal use. It will be acting as a utility wrapper for a larger #nodejs library and will be used in two main use cases #CreateReactApp and custom #Webpack projects. This is my first time building a utility library from scratch and was thinking of using Webpack to handle the bundling, tree shaking, and minification, and using #babel for transpiling.

Is this necessary or should this even be done?

#javascript #dev

James Valleroy
5 months ago

Anyone familiar with webpack and css-loader? There is a release-critical bug that affects the shaarli Debian package:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1027401

https://alioth-lists.debian.net/pipermail/pkg-javascript-devel/2023-January/076468.html

Any advice would be appreciated.

#CSS #NodeJS #Javascript #Webpack #Debian #Packaging #Shaarli #FreedomBox

I use :vim:
5 months ago

I questioned #chatGPT at first but yesterday I asked it to write me a #webpack config for an #npm library that would support #es6 important/export statements and it came out pretty much perfect. Did the same for a #manifest #v2 browser extension and that also worked.

Where it broke down was when I asked it to write me some #javascript to determine if a date-time string had a timezone. It would give me generic functions that would only work in specific situations. Even #AI can’t handle date-time

orbiteleven
6 months ago

@cuboci @wiverson Basically we used to use #Babel to transpile #ES6 (and eventually #typescript) to the ancient version of JS that browsers could understand. That was combined with #Webpack to handle import/require weirdness. Now the world (#svelte) is moving to #swc and #vite since modern browsers can *almost* understand modern (#ESNext) javascript, but it's still all in flux :P

orbiteleven
6 months ago

@cuboci @wiverson Sure... but technically the "easy" answers you're giving the #sveltekit wizard are getting handed off to #vite, #postcss, etc. via config magic. Again, you probably want something where the integrations are more intentional.

I guess if you really want to see how the sausage gets made, you should play with #vanilajs and #webpack, #vite, etc before even playing with a framework?

No matter what, I feel ya. There's no getting around the magic :P

Symfony Station :symfony:
6 months ago

From the Symfony book: To style like a pro, we will use a modern stack, based on Webpack. And to add a Symfony touch and ease its integration with the application, let's install Webpack Encore. https://symfony.com/doc/current/the-fast-track/en/22-encore.html #Symfony #Webpack

KubikPixel™
6 months ago

Which web development & frontend building tool do you prefer or do you go the classic old way with Webpack?

#webdev #buildtool #javascript #typescript #frontend #dev #webpack

HerrHase
6 months ago

Okay, nicht Perfekt, aber es reicht für einen ersten Release. Site-O-Mat ist ein #Webpack Plugin zum erstellen einer Website aus einer Markdown-Datei Struktur.

Entstanden ist es da ich einige Seiten zu aktualisieren zu habe, sich die Pflege über ein CMS aber nicht lohnt.

Ein anderer Grund ist, ein Tool zu haben für schnelle Websites die auch für den Betrieb weniger Energie benötigen.

#codinglife

https://gitea.node001.net/HerrHase/-/packages/npm/@helpers%2Fsiteomat-webpack-plugin/0.1.0

I use :vim:
6 months ago

Has anyone else been getting frequent #memoryleak #errors with the #webpack #cli recently? I’m on version 4.10.0 of the CLI and 5.21.2 of webpack. I get them about three times a day at work when I’m making changes and using #HotReloading. I’m not sure what’s causing the leak (webpack, the CLI, or maybe #eslint?) but it’s really #annoying

james
6 months ago

"i love #webpack" is my codeword for "help i've been kidnapped" from now on, for future reference.

james
6 months ago

as expected, I am no longer having fun! Trying to upgrade a #vue 2 app using the cli-service, to #webpack 5 and finding everything works but static asset urls.

John Fink
6 months ago

ok, now that I've decided to hell with #webpack now I gotta figure out how to get #caddy #CaddyServer reverse proxy to *always present every request as localhost* to the internal app. I think this should be... easy..ish but not quite there yet.

John Fink
6 months ago

ugh going *nuts* trying to configure a #nodejs #webpack app to allow connections from any hosts (e.g. allowedHosts or disableHostCheck). NO IDEA where to put it -- every place I look online doesn't work. I realize it's unsafe, but this is 100% not publicly accessible and when it becomes public I will do things the Right Way

Tobias Koppers entwickelte einst Webpack und arbeitet nun am Nachfolger Turbopack mit deutlichem Performance-Boost. Im Interview erklärt er die Hintergründe.
JavaScript-Bundler Turbopack: "Mit den Erfahrungen aus zehn Jahren Webpack"
Evan Dower
7 months ago

I write #software for http://indeed.com (job search site) (previously employed by Amazon). I've written a lot of #database-backed #webservices in #Java, but in the last few years, I've been working on #microfrontend platforms in #JavaScript & #TypeScript, primarily supporting #React. I have more knowledge about #Webpack #ModuleFederation than anyone should be cursed with. I'd love to try #SolidJS, #RustLang seems really cool, and I'm excited about the future of #WebAssembly.

Parcel hat einen neuen Bundling-Algorithmus vorzuweisen und ist in bestimmten Situationen schneller als der neue JavaScript-Bundler Turbopack.
Webentwicklung: Build-Tool Parcel mit mehr Performance bei großen Anwendungen

We are looking for a #JavaScript Developer at Kinsta.

As part of our JS Development Team, you will be working with some of the most exciting JavaScript tools on the market to build our client-facing and internal tools.

Our stack:
#typescript #React, #nodejs #GraphQL, #SQL, #NoSQL, #Webpack, #Babel, #SWC, #Jest, #Storybook, #GitHub, #Docker, #Stripe

Check the job opening here: https://jobs.lever.co/kinsta/02849da6-5a65-4556-ba66-74e32c16f742?lever-via=44eKAsVAXN

Eddie Roosenmaallen
7 months ago

Q for #React and #Webpack folks:
I want to build a website with some active elements (a couple sidebar / navbar widgets, plus active content on a few pages) and I like building React components using jsx so I want React's babel-Webpack workflow.
Trick is, I don't want to build the site as a monolithic create-react-app monstrosity, I want to build a more or less static (and/or page&post, at least as a fallback) site and embed bits of React in it.
Is there a toolset that already supports this?

Pierre
8 months ago

Want to work at Signal? Yes the same company as the end-to-end encrypted messaging app. Desktop Engineer position is open.

#signal #sql #css #flexbox #sass #javascript #career #job #employment #webpack #typescript #privacy #engineer

https://jobs.lever.co/signal/559d7829-e53d-4f73-88e9-c11a43b7bbad

Sonny
10 months ago

Playing around with ES module syntax to bundle and import resources. Similar to #webpack but for #GNOME JavaScript.

It allows importing any file as a resource path using its relative location.

A screenshot showcasing the usage of ES modules syntax to import a resource from a path and build a Gtk image from it.