Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
offline-plugin-patched
Advanced tools
offline-plugin
for webpackThis plugin is intended to provide an offline experience for webpack projects. It uses ServiceWorker, and AppCache as a fallback under the hood. Simply include this plugin in your webpack.config
, and the accompanying runtime in your client script, and your project will become offline ready by caching all (or some) of the webpack output assets.
If you are looking for the original v5
from NekR offline-plugin we have stored it on v5 branch.
npm install @lcdp/offline-plugin [--save-dev]
First, instantiate the plugin in your webpack.config
:
// webpack.config.js example
var OfflinePlugin = require('@lcdp/offline-plugin');
module.exports = {
// ...
plugins: [
// ... other plugins
// it's always better if OfflinePlugin is the last plugin added
new OfflinePlugin()
]
// ...
}
(and optionally configure with options)
Then, add the runtime into your entry file (typically main entry):
require('@lcdp/offline-plugin/runtime').install();
ES6/Babel/TypeScript
import * as OfflinePluginRuntime from '@lcdp/offline-plugin/runtime';
OfflinePluginRuntime.install();
For more details of usage with
TypeScript
see here
offline-plugin
isn't working?:information_source: Troubleshooting | FAQ
All options are optional and offline-plugin
can be used without specifying them.
offline-plugin
offline-plugin
PWAIf you are using offline-plugin
, feel free to submit a PR to add your project to this list.
See CONTRIBUTING
FAQs
offline-plugin for webpack
We found that offline-plugin-patched demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.