It just another handy module to load sw-precache-webpack plugin selectively either it is working on webpack or webpack-dev-server. Please read issues1 / 2. if you have a question why there are two of modules for sw-precache.
Install
$ yarn add sw-precache-webpack-plugin-loader
or
$ npm install --save sw-precache-webpack-plugin-loader
Usage
const SWPrecacheWebpackPlugin = ; ... // configs for sw-precache;
Relevant Projects
- ragingwind/sw-precache-webpack-dev-server-plugin: Webpack Plugin for using sw-precache during development with webpack-dev-server
- goldhand/sw-precache-webpack-plugin: Webpack plugin that generates a service worker using sw-precache that will cache webpack's bundles' emitted assets. You can optionally pass sw-precache configuration options to webpack through this plugin.
License
MIT © Jimmy Moon