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
jason chan
31,009 Pointswhat does 'use strick' mean in gulp?
'use strick';
var gulp = require('gulp'),
concat = require('gulp-concat'),
uglify = require('gulp-uglify'),
rename = require('gulp-rename');
gulp.task("concatScripts", function(){
//combine all these scripts
gulp.src([
'js/jquery.js',
'js/sticky/jquery.stick.js',
'js/main.js'])
//create file
.pipe(concat("app.js"))
// put in folder destination
.pipe(gulp.dest("js"));
});
gulp.task("minify", function(){
gulp.src("js/app.js")
.pip(uglify())
.pip(rename("app.min.js"))
.pipe(gulp.dest("js"));
});
gulp.task("default", ["hello"], function(){
console.log("this is the default task");
});
what does 'use strick'; mean in gulp?
1 Answer
Samuel Webb
25,370 PointsI'm thinking you mean 'use strict' and that is something used in JavaScript to make the JS engine have more restrictive rules when it comes to things like variable creation and some other things;
jason chan
31,009 Pointsjason chan
31,009 Pointsthank you very much. :)
Samuel Webb
25,370 PointsSamuel Webb
25,370 PointsNo problem.