Magellol / webpack-chunkids-changing

Reproducible example of a webpack configuration with chunk ids that change

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

webpack-chunkids-changing

git clean -fd before after

npm run compile
cp -r target before

# This branch includes a small change
git checkout changes

npm run compile
cp -r target after

# Observe the hashes of each chunk
ls before after

# If we diff the outputs, we see:
# 1. "main" chunk content and hash changed ✅
# 2. "internal-error-route~not-found-route" chunk content did not change, yet hash did ❌
git diff --no-index before after

git checkout master

About

Reproducible example of a webpack configuration with chunk ids that change


Languages

Language:JavaScript 100.0%