Skip to content

Instantly share code, notes, and snippets.

@timarney
Created March 14, 2018 23:44
Show Gist options
  • Save timarney/2072a16b178fb59d01ea49fdefad585e to your computer and use it in GitHub Desktop.
Save timarney/2072a16b178fb59d01ea49fdefad585e to your computer and use it in GitHub Desktop.
parcel
==========================
yarn global add parcel-bundler
yarn add parcel-plugin-pug
==========================
start your project
yarn init -y
Create your files
index.pug file
==========================
doctype html
html
include includes/header.pug
script(src='./js/index.js')
body
div(class="container")
include includes/main.pug
==================
//start the dev server
parcel index.pug
or build for prod
parcel build index.pug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment