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 Improving your Gulp Task Pipelines Putting Multiple Tasks Together

Sean Flanagan
Sean Flanagan
33,235 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.