| 1. |
What Are Gulp Plugins And How Do You Install A Gulp Plugin? |
|
Answer» 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. 1 npm install --save-dev gulp-jshint ? You can also install multiple plugins together. 1 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. 1 npm install <module>@version --save-dev ? 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. 1 npm install --save-dev gulp-jshint ? You can also install multiple plugins together. 1 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. 1 npm install <module>@version --save-dev ? |
|