Skip to content

Conversation

@Imran-imtiaz48
Copy link

Improvements
• Use Gulp 4 syntax:
Gulp 3 used an array of dependencies in task definitions (e.g., ['sass']). Gulp 4 uses functions and named tasks for better control. • Use const/let instead of var:
Modern JavaScript recommends using const and let.
• Return streams:
Always return the stream in your task functions to allow proper task chaining and error handling. • Update autoprefixer usage:
The API for gulp-autoprefixer uses an options object. • Use async functions for tasks where possible:
This future-proofs your code.
• Fix deprecated gulp-sass usage:
Modern gulp-sass requires a Sass compiler (e.g., sass from sass package). • Use gulp.series and gulp.parallel for task composition.

Improvements
•	Use Gulp 4 syntax:
Gulp 3 used an array of dependencies in task definitions (e.g., ['sass']). Gulp 4 uses functions and named tasks for better control.
•	Use const/let instead of var:
Modern JavaScript recommends using const and let.
•	Return streams:
Always return the stream in your task functions to allow proper task chaining and error handling.
•	Update autoprefixer usage:
The API for gulp-autoprefixer uses an options object.
•	Use async functions for tasks where possible:
This future-proofs your code.
•	Fix deprecated gulp-sass usage:
Modern gulp-sass requires a Sass compiler (e.g., sass from sass package).
•	Use gulp.series and gulp.parallel for task composition.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant