-
Notifications
You must be signed in to change notification settings - Fork 29.9k
Closed
Description
I am using next.js with express server.
I have created a single page(pages/index.js) that has a extremely long text( 9 Mb size ).
when i am running the application
{
"scripts": {
"dev": "node server.js",
"build": "next build",
"start": "NODE_ENV=production node server.js"
}
after running npm run build, npm run start
The browser is loading a 18.5 Mb bundle.
after running the webpack-bundle-analyser I have identified
{
"name": "dist/pages/index.js",
"size": 9771946,
"chunks": [],
"chunkNames": [],
"emitted": true,
"isOverSizeLimit": true
},
{
"name": "bundles/pages/index.json",
"size": 9771839,
"chunks": [],
"chunkNames": [],
"emitted": true,
"isOverSizeLimit": true
},
Repo link :
Can someone explain ?
frol
Metadata
Metadata
Assignees
Labels
No labels