Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bergos/bundle-size
Compare bundles sizes of import vs. require
https://github.com/bergos/bundle-size
Last synced: about 2 months ago
JSON representation
Compare bundles sizes of import vs. require
- Host: GitHub
- URL: https://github.com/bergos/bundle-size
- Owner: bergos
- Created: 2020-03-31T08:54:58.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-10T20:57:11.000Z (almost 4 years ago)
- Last Synced: 2024-04-14T18:21:29.693Z (10 months ago)
- Language: JavaScript
- Size: 39.1 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# bundle-size
Compare bundle sizes of `import` vs `require`.
## Usage
The bundles are built automatically with the npm `install` script.
You can see the bundles in the `.build` folder.
To compare the file sizes run:```bash
ls -lah .build
```If you would like to test the bundles, start the server with the following command:
```bash
npm start
```The command will start a server that listens at [http://localhost:8080/]().
Don't forget to open the developer tools to see the results.