punkyoon / parcel-example

Bundling simple HTML + JS pages with parcel-bundler

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

parcel-example

Bundling simple HTML + JS pages with parcel-bundler

first-example tree

src/
├── index.js
└──first-example/
    ├── index.html
    └── index.js

second-example tree

src/
├── index.js
└── second-example/
    ├── imgs/
    │   ├── munchlax.png
    │   └── snorlax.png
    │
    ├── index.html
    └── index.js

Install + Build + Open

# 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

License

Unlicense

About

Bundling simple HTML + JS pages with parcel-bundler

License:The Unlicense


Languages

Language:JavaScript 56.8%Language:HTML 43.2%