Comments (7)
Hi @Vinnl, runtime is supposed to be a noop when you are running in dev mode, e.g. when you do not add new OfflinePlugin()
to your plugins list. This way you do not need to replace runtime from source code when you are in dev-mode. However, when you add new OfflinePlugin()
runtime is overridden by real runtime content.
Do you have empty runtime on production?
from offline-plugin.
Hi @NekR, the same is happening in production, unfortunately. I'm still a bit new to Webpack, so it might be that I'm somehow running in development mode. That said, I don't think so. This is what I run:
webpack -p --config webpack.prd.config.js
The output path is /build/
, and if I go there and then run python -m SimpleHTTPServer 9000
, I still get this output:
Runtime function () {}
from offline-plugin.
Okay, I will try to run your code, maybe some conflict with other loaders.
from offline-plugin.
That's very dedicated - let me know if there's anything I should try. I feel a bit guilty since it's not unlikely that it's me doing something wrong...
from offline-plugin.
I just do not know how to help you in other way. It's supposed to work and only thing which can cause it to not work is other loaders.
from offline-plugin.
It was this issue: webpack/webpack#2377
Just fixed and published as 2.1.1
. Try it please.
from offline-plugin.
@NekR Excellent, it now works exactly as expected!
from offline-plugin.
Related Issues (20)
- Question - SW caching all assets site-wide HOT 1
- In Angular 9, files inside directories are not being cached
- Ideas for Documentation to Help with Troubleshooting
- Some files missing in cache on SW first load/install HOT 1
- Caching subpath urls
- Caching fails to download assets in Chrome 85 HOT 1
- Issue with default path
- [question] Having Multiple runtime installations
- Problem with Webpack 5.0 HOT 17
- Micro Front-ends structure with single-spa
- Auto update doesn't work
- After removing redux-offline, how do we ensure that client's who have old versions get the latest update?
- `onInstalling` doesn't seem to be called, because `ignoreInstalling` is always true
- offline-plugin does not serve assets from service worker
- Webpack 5 compatibility HOT 3
- The "path" argument must be of type string. Received undefined HOT 4
- Cache Images from AWS S3
- Pass ServiceWorker version to the install events
- Terser Plugin issue while building with webpack-cli HOT 3
- upgrade ejs package | CVE-2022-29078 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from offline-plugin.