Skip to content

Commit

Permalink
fix: Reduce a lot of js chunks.
Browse files Browse the repository at this point in the history
  • Loading branch information
ContentsViewer committed Jul 28, 2024
1 parent f93d0f4 commit 87499c0
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 198 deletions.
14 changes: 13 additions & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,17 @@ export default withSerwist({
output: "export",
env: {
APP_VERSION: process.env.npm_package_version
}
},
webpack: (config, { isServer }) => {
if (!isServer) {
config.optimization.splitChunks = {
// Reduce a lot of js chunks.
cacheGroups: {
default: false,
vendors: false,
},
};
}
return config;
},
});
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cloud-music-box",
"version": "0.12.1",
"version": "0.12.2",
"private": true,
"scripts": {
"dev": "next dev",
Expand Down
198 changes: 2 additions & 196 deletions public/sw.js

Large diffs are not rendered by default.

0 comments on commit 87499c0

Please sign in to comment.