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 Putting Multiple Tasks Together

Sean Flanagan
Sean Flanagan
33,232 Points

gulp compileSass

Hi. I've watched just over a minute of this video. This command didn't work.

user@user-PC MINGW32 ~/treehouse-gulp-basics (Stage3Video3)
$ git checkout -b Stage4Video1
D       css/application.css
D       css/application.css.map
M       js/app.js
M       package.json
Switched to a new branch 'Stage4Video1'

user@user-PC MINGW32 ~/treehouse-gulp-basics (Stage4Video1)
$ gulp concatScripts
[13:45:15] Using gulpfile ~\treehouse-gulp-basics\gulpfile.js
[13:45:15] Starting 'concatScripts'...
[13:45:15] Finished 'concatScripts' after 11 ms

user@user-PC MINGW32 ~/treehouse-gulp-basics (Stage4Video1)
$ gulp uglifyScripts
[13:45:33] Using gulpfile ~\treehouse-gulp-basics\gulpfile.js
[13:45:33] Task 'uglifyScripts' is not in your gulpfile
[13:45:33] Please check the documentation for proper gulpfile formatting

user@user-PC MINGW32 ~/treehouse-gulp-basics (Stage4Video1)
$ gulp minifyScripts
[13:45:59] Using gulpfile ~\treehouse-gulp-basics\gulpfile.js
[13:45:59] Task 'minifyScripts' is not in your gulpfile
[13:45:59] Please check the documentation for proper gulpfile formatting

user@user-PC MINGW32 ~/treehouse-gulp-basics (Stage4Video1)
$ gulp compileSass
[13:46:15] Using gulpfile ~\treehouse-gulp-basics\gulpfile.js
[13:46:15] Task 'compileSass' is not in your gulpfile
[13:46:15] Please check the documentation for proper gulpfile formatting

I would appreciate any help.

1 Answer

Check the tasks in your gulpfile, it's possible they got lost somehow when you switched branches. Also note that the instructor keeps saying uglifyScripts but the task we defined is actually called minifyScripts.