Created
March 14, 2018 23:44
-
-
Save timarney/2072a16b178fb59d01ea49fdefad585e to your computer and use it in GitHub Desktop.
parcel
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
========================== | |
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