- To install parcel, if don't have
npm install -g parcel-bundler
- Update dependencies
npm install
- To run dev env & watch
npm run dev
- For build production-ready files, run
npm run build
- Open http://localhost:1234 and enjoy!
blocks
- contains logics blocks with content: html template, js, css.
index.html
- main entrypoint. To include blocks, using Posthtml with .posthtmlrc.js
configuration file
master.css
- main css file. Syntax for imports:
@import "./blocks/framework/*.css";
index.js
- main js file. Syntax for imports:
// CommonJS
const dep = require('./path/to/dep')
// or ES6
import dep from './path/to/dep'
dist
- builds result's folder