markjiang
markjiang

Reputation: 617

What is the difference between build and dist folder?

As far as I know /dist is for production environments. It contains uglified and similar files. But why do we need a /build folder ?

Upvotes: 45

Views: 27602

Answers (3)

Kushal Shakya
Kushal Shakya

Reputation: 11

As Mentioned above Build is the final outcome of the files wrapped in a package which is used while hosting the site but the catch is the build also minifies the whole production packages and only keeps modules that is necessary for running.

Upvotes: 0

Sameer
Sameer

Reputation: 1

Dist is stores all the files and folders that are required to host on server. Build is the final built package of files that will be deployed somewhere.

Upvotes: 0

Daniel Humfleet
Daniel Humfleet

Reputation: 609

Dist is for distribution and contains minified code. Build contains code that is not minified and not ready for production deployment.

Check this link… What is the role of src and dist folders?

Upvotes: 45

Related Questions