summaryrefslogtreecommitdiff
path: root/next.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'next.config.js')
-rw-r--r--next.config.js5
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',
})