0 votes
in JAVA by
What are gulp plugins and how do you install a gulp plugin?

1 Answer

0 votes
by
A plugin is nothing but a reusable piece of code. Somebody has already made it and distributed to the world to use it, so that you don’t have to code again. It saves your time. Gulp plugins are distributed through Node’s NPM directory. Normally, they are prefixed with gulp- Example: gulp-jshint. You can get list of all gulp plugins here.

To install gulp plugin, run following command.

npm install --save-dev gulp-jshint

You can also install multiple plugins together.

npm install --save-dev gulp-jshint gulp-concat gulp-uglify

By default, it always installs the latest version available. But if you wish to install specific version then same you can include in the command.

npm install <module>@version --save-dev

Q10. How do you uninstall gulp?

Ans. Run following command to uninstall gulp globally.

npm uninstall -g gulp

And if you wish to remove from your project,

npm uninstall --save-dev gulp

Related questions

0 votes
asked Feb 15, 2020 in JAVA by rahuljain1
0 votes
asked Feb 15, 2020 in JAVA by rahuljain1
...