Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript Gulp Basics Gulp your JavaScript Workflow Minifying JavaScript Files

Jorge Cascante
Jorge Cascante
13,582 Points

Conflict: files with the same name. (app.js)

on this video at 05:10 an issue arises because there are 2 files named app.js So my question is if we can just put a different name to the app.js file for gulp so it doesn't conflict with the original app.js file. Or is it the maybe that when creating the app.js file on gulp it is necessary to be named like that too for it work. Just curios why this conflict happens making necessary the hassle to install a new dependency.

1 Answer

Carlos Fernando G贸mez Carrero
Carlos Fernando G贸mez Carrero
46,984 Points

Yes you can put a different name to the files, but because app.js is a name convention is prefered to use app.min.js as the minified file, so everything is more clear.