Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript Gulp Basics Improving your Gulp Task Pipelines The Build and Development Pipeline

Joel Pendleton
Joel Pendleton
19,230 Points

Why is 'clean' an important process?

Why is 'clean' an important process?

3 Answers

Hi Joel,

Clean runs on the dist/ directory and makes sure that nothing created in a previous build and later removed in app/ is still in there. It just helps keep your build fresh and lacking in residual artifacts from previous builds.

Best, Cena

yea im trying to figure out why we used build to make a dist folder and then deleted it... im sure if i keep watching ill get it but im puzzled at the moment

Routine Poutine
Routine Poutine
26,038 Points

Is it because you want to compile over and over again until time to deploy? Is there an easier way than 'clean', such as overriding the currently compiled file instead of deleting and then compiling?