Bundling simple HTML + JS pages with parcel-bundler
src/
├── index.js
└──first-example/
├── index.html
└── index.js
src/
├── index.js
└── second-example/
├── imgs/
│ ├── munchlax.png
│ └── snorlax.png
│
├── index.html
└── index.js
# Install packages
$ npm install
# Build for local
$ npm run build:stag
# Open local build
$ open dist/first-example/index.html
$ open dist/second-example/index.html
# Build for prod
$ npm run build:prod
# Open local build
$ open build/first-example/index.html
$ open build/second-example/index.html
Unlicense