This website uses cookies

Our website, platform and/or any sub domains use cookies to understand how you use our services, and to improve both your experience and our marketing relevance.

This website uses cookies

Our website, platform and/or any sub domains use cookies to understand how you use our services, and to improve both your experience and our marketing relevance.

Introducing Cloudways Community Forum. Start Discussions and Get Instant Help From Cloudways Community. JOIN NOW

How to Use Node Modules on CloudwaysJune 30, 2017

 

In this KB

  • Using Node modules on Cloudways
  • Using NPM modules on Cloudways
  • Using Gulp with Laravel on Cloudways

 

This guide will assist you in the process of using a Node module on Cloudways. We are going to use gulp with laravel 5.3. All the node modules that you will install on Cloudways will be installed locally in your application. You could then set the relevant environment variable. You can install these modules either in your private_html folder or public_html folder.

First, we will install a gulp module in the public_html folder. Read here to learn how to connect with SSH. Use the following command to go into the public_html folder of your application.

Step 1: Installing Gulp

To install gulp locally, run the following command:

Installing Gulp

Step 2: Running A Gulp Task

Laravel 5.3 comes with several built-in tasks for gulp. Let’s watch those tasks.

Running A Gulp Task

Gulp Use Cases

There are different use cases for Gulp, some of them are:

  • Running different tasks
  • Minifying JS and CSS
  • JS Obfuscation
  • Compilation of Sass and LESS

 

That’s it! You have learned how to use node modules on Cloudways.

Please insert Content
Have Questions? Ask From Our Helpful Community

Comments are closed.

Do you still need help?

Our Technical Support team is always at work.