pkg
webpack
Our great sponsors
pkg | webpack | |
---|---|---|
77 | 272 | |
22,711 | 62,478 | |
1.0% | 0.4% | |
7.6 | 9.0 | |
17 days ago | 1 day ago | |
JavaScript | JavaScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
pkg
- Russhian Roulette: 1/6 chance of posting your SSH private key on pastebin
-
From Ruby to Node: Overhauling Shopify’s CLI for a Better Developer Experience
You don't even need that: https://github.com/vercel/pkg.
I think there are equivalents in the Python ecosystem.
- Valetudo – Free your vacuum cleaner from the cloud
-
Exploring competitive features in Node.js v18 and v19
Another exciting feature is the ability to build a single-executable Node.js binary. Before Node.js v18, the only way to build a Node.js binary was to use a third-party package, like pkg.
-
Docker's technical preview of WASM with Rust
As a comparison I am using https://github.com/vercel/pkg to package my Node.js app into an exe file. Vercel-pkg allows me to build different images for different platforms like Windows, Linux, Mac. It would be nice if it could produce a single .exe that worked on all platforms. But I guess such an exe would have to be bigger. It is not too cumbersome to produce one exe per platform that my users need.
-
Tauri + NodeJS: Alternative to Electron
To run NodeJS as a sidecar we need to pack it into binary. Taurine is bundling your server code and preparing it for packing into a single binary. Using Vercel’s pkg CLI tool we can compile it into a single executable binary. That binary is running with the Tauri application.
-
nodeMyAdmin: The alternative to phpMyAdmin written with node.JS
What if you packaged the whole thing into one executable using pkg?
-
How to run code without node?
In addition to the other responses, there are node packages like pkg and nexe that you can use to package the node executable and your code into a single executable.
-
Memories: Edinburgh ML to Standard ML
Not really, at last check it just bundles the entire .Net runtime with the compiled image. It's basically the equivalent of https://github.com/vercel/pkg or similar tools.
-
Command line applications
You can even pack your terminal application in a single binary that does not require separate NodeJS installed via pkg.
webpack
-
React setup without create-react-app
if you want to learn more about webpack just go to this website https://webpack.js.org/ explore it and see more settings in webpack.
-
Rails on Docker · Fly
I'm not gonna lie, I didn't read all that, but the node example alone proves you either didn't read the guy you replied to or haven't been coding long enough to grok the problem.
What if you want to start a new project using the latest postgres version because postgres has a new feature that will be handy, but you already maintain another project that uses a postgres feature or relies on behaviour that was removed/changed in the latest version? You're going to set up a whole new VM on the internet to be a staging environment and instead of setting up a testing and deployment pipeline you're going to just FTP / remote-ssh into it and change live code?
you define an apps entire chain of dependencies in a compose file / set of kube manifests / terraform config for ecs. Then in the container definition itself you lock down things like C library and distro versions: maybe you use specially patched imagemagick on one project or a pdf generator on another, and fontconfig defaults were updated and it changed how aliasing works between distro releases and now your fonts are all fugly in generated exports...
nevermind this, check out this thread to destroy your illusion that simply having node installed locally will make your next project super future proof https://github.com/webpack/webpack/issues/14532
if you respond please do not open with "yeah but rust", I can still compile Fortran code too
-
How to use Firestore with Redux in a React application
With tools like webpack (used by create-react-app under the hood), your entire application needs to be bundled in a single file before it can be served to the browser. Vite, on the other hand, takes advantage of native ES modules in the browser to make bundling more efficient with Rollup, serving parts of the source code as needed.
-
How to bypass mobile app review thanks to Capacitor, Ionic, and micro frontends 🤯
If I choose React as a used framework, Ionic’s boilerplate is based on Create React App. Because of it I want a tool which edits Webpack’s configuration without ejecting CRA’s configuration.
- Node.js やReact、ESM、Viteの説明
-
Show: Open-source admin dashboard with Tailwind CSS and Flowbite
Webpack webpack.js.org
-
Setting up Module Federation with Server-Side Rendering for Angular
Module Federation is a technology provided by webpack that enables modules to be federated across different origins at runtime. This means that Webpack will simply ignore these modules at build time, expecting them to be available to be fetched across the network at runtime.
-
Rust WebAssembly (wasm) on Arch Linux with Webpack (Rust 1.66.0)
Webpack: 4.46.0
-
What is(are) the best resource(s) to lean how to build modern web applications?
Packaging - turning all your code, CSS, assets, etc. into the files you'll actually stick on your host server. e.g. webpack, maybe esbuild, etc..
-
Building a Custom YAML Loader for Webpack
One of our internal tools at RedBit uses yaml to provide structured data. We chose yaml because it's more human-friendly than json, and the data in question is created and modified by humans during development. Applications need to consume the data as JavaScript objects, so we need to convert it from yaml to json. We could do the conversion at runtime but that would affect performance, possibly to the point of degrading the user experience. Instead, we chose to convert the data during the build process, which is controlled by webpack. This required a custom webpack loader. I won't describe the implementation of our internal tool in detail because it wouldn't be particularly helpful or relevant. Instead, I'll show you how to build a simple yaml loader that you can modify to suit your own needs.
What are some alternatives?
craco - Create React App Configuration Override, an easy and comprehensible configuration layer for Create React App.
esbuild - An extremely fast bundler for the web
vite - Next generation frontend tooling. It's fast!
nexe - 🎉 create a single executable out of your node.js apps
Rollup - Next-generation ES module bundler
ncc - Compile a Node.js project into a single file. Supports TypeScript, binary addons, dynamic requires.
parcel - The zero configuration build tool for the web. 📦🚀
gulp - A toolkit to automate & enhance your workflow
react-app-rewired - Override create-react-app webpack configs without ejecting
reverse-engineering - List of awesome reverse engineering resources
Snowpack - ESM-powered frontend build tool. Instant, lightweight, unbundled development. ✌️ [Moved to: https://github.com/FredKSchott/snowpack]
Microbundle - 📦 Zero-configuration bundler for tiny modules.