decaporg / decaporg/decap-cms

Looking for ideas for decreasing the webpack bundle Size

Open
#328 4 comments 1 reaction 0 assignees View on GitHub
area: build kind: discussion pinned
Dominant language
JavaScript
Stars
19.4k
Forks
3.1k
Avg merge
1d 14h
Merged PRs (30d)
9

Description

When you run `npm run build` you can see the bundle size is ~1.5mb parsed and ~480kb gzipped. I am curious if there are any experts on webpack that help with solutions for decreasing the bundle size.

screenshot 2017-03-28 10 15 29

I don't believe it would be realistic to do so, but I did experiment with Preact and saw a significant decrease in size. I did not explore this fully, but wanted to field this issue to see if anyone has some quick wins.

with preact 👇🏾
screenshot 2017-03-28 10 32 45

Contributor guide

Open the contributing guide

Research direction

Start by running `npm run build` and reviewing the bundle-size output shown in the issue, then investigate the webpack setup and the reported Preact comparison. The issue does not name files, tests, a target size, or a completion threshold, so define a measurable reduction and validation approach before attempting changes.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react, webpack
Domain
frontend, performance, web-dev
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.