INNER CODE UNIT · JavaScript

removeSWPrecachePlugin

saalikmubeen/talkhouse · client/config-overrides.js:21

function removeSWPrecachePlugin(config) {
  const swPrecachePluginIndex = config.plugins.findIndex(
    (element) => {
      return element.constructor.name === 'SWPrecacheWebpackPlugin';
    }
  );
  if (swPrecachePluginIndex !== -1) {
    config.plugins.splice(swPrecachePluginIndex, 1);
  }
  return config;
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…