Installing Vendor plugins with Npm
Follow this 4 easy steps to install 3rd party plugin and use it in your Silicon based project:
- Open your Terminal window and navigate to the root directory of your project (where you package.json file is located).
- Run npm install <package name> --save. This command does two things: downloads package to
node_modules
folder and writes dependency to your package.json
file inside dependencies object
.
- Run npm run vendor. This command will clean
assets/vendor
folder and move all the dpendencies that are listed under dependencies object
inside package.json
file to assets/vendor
including your newly downloaded plugins.
- The final step is to link the plugin's scripts and styles in your HTML document.
Top