Skip to content

Commit

Permalink
chore: remove webpackbar dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
juliomalves committed Dec 23, 2023
1 parent be55c7e commit d925701
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 120 deletions.
8 changes: 1 addition & 7 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import WebpackBar from 'webpackbar'
import nextBundleAnalyzer from '@next/bundle-analyzer'

const withBundleAnalyzer = nextBundleAnalyzer({
Expand All @@ -13,12 +12,7 @@ const config = {
},
reactStrictMode: true,
swcMinify: true,
poweredByHeader: false,
webpack: (config, { isServer }) => {
const name = isServer ? 'server' : 'client'
config.plugins.push(new WebpackBar({ name }))
return config
}
poweredByHeader: false
}

export default withBundleAnalyzer(config)
112 changes: 2 additions & 110 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"homepage": "https://github.com/juliomalves/juliomalves.dev#readme",
"engines": {
"node": ">=16.17"
"node": ">=20"
},
"scripts": {
"dev": "next dev",
Expand Down Expand Up @@ -60,7 +60,6 @@
"tailwindcss": "~3.4.0",
"ts-jest": "~29.1.1",
"typescript": "~5.3.3",
"webpack": "~5.89.0",
"webpackbar": "~5.0.0-3"
"webpack": "~5.89.0"
}
}

0 comments on commit d925701

Please sign in to comment.