Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 ?

like image 975
markjiang Avatar asked Mar 28 '16 03:03

markjiang


People also ask

What is the dist folder?

To answer your original question about the meaning of the dist folder: The shortform dist stands for distributable and refers to a directory where files will be stored that can be directly used by others without the need to compile or minify the source code that is being reused.

What is a dist folder used for?

The dist folder, short for distribution folder, is dynamically generated when using the nuxt generate commands and includes the generated production ready HTML files and assets that are necessary to deploy and run your statically generated Nuxt application.

What are build folders?

The build/interfaces folder contains compiler artifacts generated from project interfaces. These files use a similar structure, but only contain some of the fields listed above.

Should I include dist folder?

The dist folder is for production website it's not necessary to have it. It will contain for example your image, css, script, vendor folder ready for production (minified and concatenated).


1 Answers

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?

like image 100
Daniel Humfleet Avatar answered Sep 19 '22 01:09

Daniel Humfleet