worker-loader
offline-plugin
Our great sponsors
worker-loader | offline-plugin | |
---|---|---|
3 | 2 | |
1,378 | 4,503 | |
- | - | |
5.5 | 0.0 | |
over 2 years ago | over 2 years 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.
worker-loader
-
Creating a web worker inside React
I have a React app created with create-react-app, not ejected. I'm trying to use web workers. I've tried the worker-loader package (https://github.com/webpack-contrib/worker-loader).
-
Loading web workers using Webpack 5
worker-loader is the pre-webpack-5 way to load web workers, and its documentation highlights how it’s not compatible with webpack 5 (“Worker Loader is a loader for webpack 4”). Still, in my experience, besides a few quirks, worker-loader can be used with webpack 5, and it offers several more customization options than webpack 5’s built-in web worker support.
-
12 open source browser tools and how I've built them
I was surprised how easy it is to work with web workers in webpack. All you need is worker-loader that will handle all worker bundling for you.
offline-plugin
-
Meteor with Webpack in 2018 — Faster compilation and better source handling
For example, you have a Progressive Web Application using Service Workers, written in Angular, then you have to create a service worker manifest based on your output files. We don’t have a solution for this on Meteor CLI natively. However, Webpack has a lot of community plugins such as OfflinePlugin , Workbox and many others for this problem as a solution. Just install them, and add to your webpack.config.js . Meteor-Webpack will handle it like you’re working on a pure Webpack project.
-
12 open source browser tools and how I've built them
Since Omatsuri is a browser only application the only thing that we need from service worker is to cache assets and provide app shell. Offline plugin does exactly that, the only thing we need to do – add it to the production build in webpack config:
What are some alternatives?
svgo-browser - svgo fork with interface for browser and additional tweaks for node
pwa-quasar-local - This project demonstrates how to develop a Progressive Web Application (PWA) locally on an Android device, using the Quasar Framework v2.
xooks - General purpose react hooks collection
kiwix-js-pwa - Kiwix JS Offline Browser implemented as a Progressive Web App (PWA), and packaged as Electron, NWJS and UWP apps for Windows and Linux.
create-react-app - Set up a modern web app by running one command. [Moved to: https://github.com/facebook/create-react-app]
angular-cli - CLI tool for Angular
html-loader - HTML Loader
react-refresh-webpack-plugin - A Webpack plugin to enable "Fast Refresh" (also previously known as Hot Reloading) for React components.
svgo - ⚙️ Node.js tool for optimizing SVG files
next-offline - make your Next.js application work offline using service workers via Google's workbox
css-loader - CSS Loader
webpack-dev-middleware - A development middleware for webpack