Parceljs How to create one bundle file instead of each file?

Viewed 58

I have a simple project setup with parcel:

/** main.js */
console.log("Hey")
/** tools.js */
console.log("Hoo")

When I run parcel it creates two files: main.js and tools.js. However I would love to have it bundle to one file where booth source codes are in it. Like this:

/** bundle.js */
console.log("Hoo")
console.log("Hey")

How can I achieve this?

This is my build command parcel build ./src/**/*.js. The target environment is the browser.

0 Answers
Related