Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/garthenweb/parcel-bundle-names-example
https://github.com/garthenweb/parcel-bundle-names-example
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/garthenweb/parcel-bundle-names-example
- Owner: garthenweb
- Created: 2019-09-29T22:29:11.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T10:13:07.000Z (almost 2 years ago)
- Last Synced: 2024-04-09T15:27:34.968Z (7 months ago)
- Language: JavaScript
- Size: 1.06 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Parcel Example Unchanged Filename
This example shows that the content of module a and b will change but not it's filename.
```bash
npm install
npx parcel build index.html --no-cache
# dist/parcel-bundle-names.f9e523ed.js 207.26 KB 8.91s
# dist/a.0269a15d.js 1.15 KB 76ms
# dist/b.43e9bf37.js 1.15 KB 62ms
npm install --save mobx-react@6
npx parcel build index.html --no-cache
# dist/parcel-bundle-names.e770a5f7.js 200.84 KB 18.23s
# dist/a.0269a15d.js 1.15 KB 95ms
# dist/b.43e9bf37.js 1.15 KB 103m
git diff dist
```Compare the file `dist/a.0269a15d.js` before and after, and observe:
* mobx-react@5 reference: xuHX
* mobx-react@6 reference: YM9H![Diff](./diff.jpg)