| 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 %}
delete cache and dist folders and rerun npm start