![]() This plugin only compresses images of the following data types: png, jpeg, gif, and svg. This command will install a plugin that can compress your images. This command will install gulp to your project. You will always be able to enter information later if you choose to. You can take the time to enter metadata or skip it by merely clicking enter to skip through it.ĭon’t worry, though. As soon as you write this command and hit enter, the command prompt will ask you to enter metadata about your project, such as name, description, and version. It holds metadata information about your project. This command will create a package.json file for your project. These installations will require the help of the npm package manager. Using the command prompt, we are going to install plugins for your project. For example, this is what mine looks like: cd C:\Users\kyled\OneDrive\Desktop\ProjGulpĪs soon as you do this, we are ready to start working on the project. Replace ‘placeholder’ with the path to your project folder. ![]() To access this folder in your command prompt, simply write cd placeholder The command prompt on Windows looks like this:Īfter creating the folder for our project, we want the command prompt to be able to access our project. To get started, Gulp requires the installation of Node.js. Other popular task runners include npm script and Grunt. The Task Runner of choice for this article is Gulp. Instead, avoid all that by enlisting help from Task Runners. You can definitely carry out these optimization techniques yourself, without the aid of task runners, but the process can quickly become tedious and time-consuming. It may not seem like much, but performing such actions can significantly reduce the loading time of your web page. It does this by reducing the file sizes of these items through various optimization techniques. ![]() Task Runners are essentially tools that can optimize your web page’s CSS files, SASS files, JavaScript scripts, and images.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |