📅  最后修改于: 2023-12-03 14:45:05.213000             🧑  作者: Mango
Parcel is a web application bundler that is fast, zero configuration and supports multiple file types out of the box. With Parcel, you can create and bundle any kind of web projects, from simple static websites to complex web applications.
To use Parcel, simply install it using npm:
npm install -g parcel-bundler
Then create an HTML file and add a script tag pointing to your entry file:
<!DOCTYPE html>
<html lang="en">
<head>
<title>My App</title>
</head>
<body>
<script src="./index.js"></script>
</body>
</html>
Finally, run Parcel using your entry file as the input:
parcel index.html
Parcel will automatically detect your entry file and produce a production-ready build in the dist
directory.
Parcel is an excellent choice for web developers who want a fast and easy-to-use bundler. With its zero configuration and great features, Parcel makes it easy to create and bundle any kind of web projects. Try it out and see for yourself!