Skip to content

Latest commit

 

History

History
46 lines (37 loc) · 712 Bytes

File metadata and controls

46 lines (37 loc) · 712 Bytes

Parcel

https://parceljs.org/ 3/2
npm init

{% code title="install parcel" %}

##yarn
yarn global add parcel-bundler
##local
yarn install parcen-bundler --save-dev

##npm
npm i -g parcel-bundler
##local
npm i parcel-bundler --D

{% endcode %}

{% code title="using parcel" %}

npm start     ##start = variable name in package.json under script:
npm run build ##build = var name 

{% endcode %}

{% code title="package.json" %}

{
  "scripts": {
    "start": "parcel index.html",
    "build": "parcel build index.html"
  }
}

{% endcode %}

Debugging

delete cache and dist folders and rerun npm start