https://github.com/ultcombo/module-folding-example
https://github.com/ultcombo/module-folding-example
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ultcombo/module-folding-example
- Owner: UltCombo
- License: mit
- Created: 2016-01-24T06:39:43.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-01-25T01:45:58.000Z (over 10 years ago)
- Last Synced: 2024-10-18T13:56:11.172Z (over 1 year ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Um exemplo simples de *module folding* (*tree-shaking*) usando [Webpack](https://webpack.github.io/).
```sh
# Baixar e instalar o exemplo:
git clone https://github.com/UltCombo/module-folding-example.git
cd module-folding-example
npm install
# Gerar *bundle* com module folding usando Webpack:
npm run build
# Rodar o código gerado:
node bundle.js
```