diff options
author | Thomas F. K. Jorna <[email protected]> | 2021-07-31 17:04:04 +0200 |
---|---|---|
committer | Thomas F. K. Jorna <[email protected]> | 2021-07-31 17:04:04 +0200 |
commit | 05cbc50ef707e9ac10dc02c56acbb954ffbb3e24 (patch) | |
tree | ae5b39e300757bce577ccf98a7583a256ad9046e /next.config.js | |
parent | 0c4f21f00de62cd839dda7888cef7a28aaa041e7 (diff) |
added pwa compatibility
Diffstat (limited to 'next.config.js')
-rw-r--r-- | next.config.js | 5 |
1 files changed, 3 insertions, 2 deletions
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', }) |