sw-precache-webpack-plugin-loader
v1.0.2
Published
Selectively load sw-precache-webpack plugin either it is working on webpack or webpack-dev-server
Downloads
6
Maintainers
Readme
sw-precache-webpack-plugin-loader
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 = require('sw-precache-webpack-plugin-loader');
...
new 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