From 05cbc50ef707e9ac10dc02c56acbb954ffbb3e24 Mon Sep 17 00:00:00 2001 From: "Thomas F. K. Jorna" Date: Sat, 31 Jul 2021 17:04:04 +0200 Subject: added pwa compatibility --- next.config.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'next.config.js') diff --git a/next.config.js b/next.config.js index 3a51714..72440d6 100644 --- a/next.config.js +++ b/next.config.js @@ -1,10 +1,11 @@ const fs = require('fs') const withPlugins = require('next-compose-plugins') +const withPWA = require('next-pwa') const d3packages = fs.readdirSync('node_modules').filter((name) => name.startsWith('d3-')) const withTM = require('next-transpile-modules')(d3packages) -module.exports = withPlugins([withTM], { - distDir: 'build' +module.exports = withPlugins([withTM, withPWA], { + distDir: 'build', }) -- cgit v1.2.3