Skip to content

Commit

Permalink
build(next): Add settings for bundle analyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
ruedap committed Jun 7, 2020
1 parent dbc1cbe commit dac597d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
const path = require('path')

module.exports = {
const withBundleAnalyzer = require('@next/bundle-analyzer')({
enabled: process.env.ANALYZE === 'true',
webpack (config, _) {
config.resolve.alias['@'] = __dirname
return config
}
}
})

module.exports = withBundleAnalyzer

0 comments on commit dac597d

Please sign in to comment.