依赖包分析

This commit is contained in:
tangly1024
2022-03-28 16:45:17 +08:00
parent 69070ebbca
commit 2c1cdd324b
2 changed files with 6 additions and 2 deletions

View File

@@ -1,4 +1,7 @@
module.exports = {
const withBundleAnalyzer = require('@next/bundle-analyzer')({
enabled: process.env.ANALYZE === 'true'
})
module.exports = withBundleAnalyzer({
future: {
webpack5: true
},
@@ -29,4 +32,4 @@ module.exports = {
}
return config
}
}
})

View File

@@ -19,6 +19,7 @@
"post-build": "next-sitemap --config next-sitemap.config.js"
},
"dependencies": {
"@next/bundle-analyzer": "^12.1.1",
"@popperjs/core": "^2.9.3",
"animate.css": "^4.1.1",
"axios": ">=0.21.1",