parcel-react-demo

The project address

parcel

website

Parcel is a web application packaging tool for developers with varying experience. It takes advantage of multi-core processing to provide extremely fast speed and requires no configuration.Copy the code

React

website

A JavaScript library for building user image interfacesforBuilding User interfaces javascript librariesCopy the code

parcel & React

According to the description of package.json file in the root directory of the project install dependencies

preparation

Yarn:

yarn global add parcel-bundler
Copy the code

npm:

npm install -g parcel-bundler
Copy the code

Once installed globally, you can use a Parcel.

After use feeling

  • Fast (caching mechanism)
  • Easy to use (few configuration items)
  • To be mining pit

The command configuration

Full description file

"scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"."start": "parcel ./src/html/index.html"."build": "parcel build ./src/html/index.html --out-dir ./production"
  }
Copy the code