Plugins

Learn to work with the existing plugins or install new ones. Optimize your web project and use the plugins only when needed in order to get great speed results.


Installation

All plugins are installed using package managers like NPM or Yarn. In the package.json file you will find a dependencies array where all the packages are stored. You can choose which one will remain or add new ones. Also, you can install plugins directly from the terminal using the npm i PACKAGE_NAME.

Initalization

After installing and integrating a plugin on your web page you will need to initialize it. For vendor files/plugins our approach is to create a new file with the name of the plugin in the resources/js/core/libs folder. After adding the init script, Gulp will automatically compile it in the main JS file.