<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: anitaparmar26</title>
    <description>The latest articles on DEV Community by anitaparmar26 (@anitaparmar26).</description>
    <link>https://dev.to/anitaparmar26</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F480902%2F9f1567f3-a4e1-4d77-8a48-2c9a74d9a63b.jpg</url>
      <title>DEV Community: anitaparmar26</title>
      <link>https://dev.to/anitaparmar26</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/anitaparmar26"/>
    <language>en</language>
    <item>
      <title>Free Admin Dashboard Template - Dash UI</title>
      <dc:creator>anitaparmar26</dc:creator>
      <pubDate>Thu, 03 Feb 2022 10:14:09 +0000</pubDate>
      <link>https://dev.to/anitaparmar26/free-admin-dashboard-template-dash-ui-pi3</link>
      <guid>https://dev.to/anitaparmar26/free-admin-dashboard-template-dash-ui-pi3</guid>
      <description>&lt;p&gt;Bootstrap 5 Admin &amp;amp; Dashboard Template - Dash-UI. &lt;a href="https://dashui.codescandy.com/"&gt;Dash UI&lt;/a&gt; Kit is a free and open-source components and templates kit fully coded with Bootstrap 5.&lt;/p&gt;

&lt;p&gt;It comes with Beautiful UI components &amp;amp; professionally designed, fully responsive pages for admin dashboard.&lt;/p&gt;

&lt;p&gt;Our Academy Admin Dashboard Template is available in pro version.&lt;br&gt;
&lt;a href="https://bit.ly/geeksui"&gt;Geeks UI Bootstrap 5&lt;/a&gt; &amp;amp; &lt;a href="https://bit.ly/geeksuireact"&gt;Geeks React Admin Dashboard&lt;/a&gt;   &lt;/p&gt;

</description>
      <category>opensource</category>
      <category>github</category>
      <category>bootstrap5</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Front End Developer Tools</title>
      <dc:creator>anitaparmar26</dc:creator>
      <pubDate>Fri, 28 Jan 2022 09:58:19 +0000</pubDate>
      <link>https://dev.to/anitaparmar26/front-end-developer-tools-pfm</link>
      <guid>https://dev.to/anitaparmar26/front-end-developer-tools-pfm</guid>
      <description>&lt;p&gt;Hello folks,&lt;/p&gt;

&lt;p&gt;Today I am sharing some developers tools which may useful in work. Getting to know the Developer tools of the trade can make your job easier and keep you on top of the skills you need to land a developer job or work better with your current team or clients.&lt;/p&gt;

&lt;p&gt;Here some list:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Roadmap. sh&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;roadmap.sh is a community effort to create roadmaps, guides and other educational content to help guide the developers in picking up the path and guide their learnings.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://roadmap.sh/" rel="noopener noreferrer"&gt;Link&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;2. RapidAPI&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Discover and connect to thousands of APIs&lt;/p&gt;

&lt;p&gt;&lt;a href="https://rapidapi.com/hub" rel="noopener noreferrer"&gt;Link&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;3. Daily. dev&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This chrome extension is the fastest growing online community for developers to stay updated on the best developer news..&lt;/p&gt;

&lt;p&gt;&lt;a href="https://chrome.google.com/webstore/detail/dailydev-the-homepage-dev/jlmpjdjjbgclbocgajdjefcidcncaied" rel="noopener noreferrer"&gt;Link&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;5. Figma&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Create mockups, design templates of your websites here.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.figma.com/graphic-design-tool/" rel="noopener noreferrer"&gt;Link&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;6. Small Dev Tools&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Useful developer tools which can perform a specific task.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://smalldev.tools/"&gt;Link&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;7. Meta Tags&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;It will let you know how your webpage looks on Chrome, Twitter, Facebook, etc.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://metatags.io/" rel="noopener noreferrer"&gt;Link&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Thank you for reading post.&lt;br&gt;
We recently launch our &lt;a href="https://bit.ly/geeksuireact" rel="noopener noreferrer"&gt;Geeks React UI Kit&lt;/a&gt; Project.&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fawa881kb9iec58qass0j.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fawa881kb9iec58qass0j.jpg" alt="Geeks React UI Kit - Admin Dashboard Template"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>react</category>
      <category>productivity</category>
      <category>devops</category>
    </item>
    <item>
      <title>Git Command Cheat Sheet </title>
      <dc:creator>anitaparmar26</dc:creator>
      <pubDate>Thu, 30 Dec 2021 11:34:07 +0000</pubDate>
      <link>https://dev.to/anitaparmar26/git-command-cheat-sheet-31ec</link>
      <guid>https://dev.to/anitaparmar26/git-command-cheat-sheet-31ec</guid>
      <description>&lt;p&gt;Hello Dev,&lt;/p&gt;

&lt;p&gt;We all know about &lt;strong&gt;&lt;a href="https://git-scm.com/"&gt;Git&lt;/a&gt;&lt;/strong&gt; but I want to share little bit about that, In daily base where I am using, it is basic cheat sheet need to all developers.&lt;/p&gt;

&lt;p&gt;Lots of code conflict had been when we were working in a team to completed project. That time we decided to have one cheat sheet on our office wall above desk.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Git Clone:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git clone https://name-of-the-repository-link
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Git New branch, list, deleting:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git branch -b (branch name)
git branch or git branch --list
git branch -d 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Git Checkout:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git checkout (branch name)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Git Switch:&lt;/strong&gt;&lt;br&gt;
git switch means you have already created branch.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git switch (branch name) 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Git Status Command for:&lt;/strong&gt;&lt;br&gt;
like current branch, commit, push or pull, files staged, unstaged or untracked, files created, modified or deleted&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git status
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Git Add:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git add 
git add -A (for everything)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Git Commit:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git commit -m "commit message"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Git Push: for upload local repo content&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;git push: it is commonly used to upload local repository content to a remote repository.&lt;/li&gt;
&lt;li&gt;git push --set-upstream: Branch 'branch Name' set up to track remote branch 'branch Name' from 'origin'.&lt;/li&gt;
&lt;li&gt;git push -u origin: For push working existing branch .
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git push 
git push --set-upstream 
git push -u origin
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Git Pull: for git fetch from local repo which will merge branch&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git pull
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Git Merge: for merge branch to another&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git checkout (branch name)
git fetch
git merge
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Thank you for reading.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>beginners</category>
      <category>productivity</category>
      <category>github</category>
    </item>
    <item>
      <title>Webpack 5 : Guide for beginners</title>
      <dc:creator>anitaparmar26</dc:creator>
      <pubDate>Wed, 13 Oct 2021 11:31:53 +0000</pubDate>
      <link>https://dev.to/anitaparmar26/webpack-5-guide-for-beginners-314c</link>
      <guid>https://dev.to/anitaparmar26/webpack-5-guide-for-beginners-314c</guid>
      <description>&lt;p&gt;So many times heard from dev that they don't understand how to configure webpack because of the config file. Today we learn how to use webpack to set up bundle styles, JavaScript, images, and fonts for the web.&lt;/p&gt;

&lt;p&gt;The first time using webpack lots of questions would be whirling around, it can be difficult to understand how it works and how it should be used. My goal is to help you understand webpack.&lt;/p&gt;

&lt;p&gt;Let's dive into webpack Initialization.&lt;/p&gt;

&lt;h4&gt;
  
  
  What is webpack 5?
&lt;/h4&gt;

&lt;p&gt;In short, &lt;a href="https://webpack.js.org/" rel="noopener noreferrer"&gt;webpack&lt;/a&gt; is a static module bundler for modern JavaScript applications. It’s impossible to mention all tools and it’s unnecessary for a beginner’s guide like this.&lt;/p&gt;

&lt;p&gt;Instead, I'll try to put a small core list to start.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Basic Configuration &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Entry point &lt;/li&gt;
&lt;li&gt;Output&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;

&lt;p&gt;Loaders&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Styles&lt;/li&gt;
&lt;li&gt;Images&lt;/li&gt;
&lt;li&gt;Fonts&lt;/li&gt;
&lt;li&gt;Babel (JavaScript)&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;

&lt;p&gt;Plugins&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;HTML Template&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;

&lt;p&gt;Mode&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Development&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;/ul&gt;

&lt;h5&gt;
  
  
  Getting started with Webpack Basic Configuration
&lt;/h5&gt;

&lt;p&gt;First, create a directory for your project to live and start the project. There before We will begin by creating the following directory structure:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdwraey45nprkq7n61ijh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdwraey45nprkq7n61ijh.png" alt="Webpack"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  1. Create Project
&lt;/h4&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

mkdir webpack-setup
cd webpack- setup
npm init -y # creates a default package.json


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h4&gt;
  
  
  2. Webpack setup
&lt;/h4&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

npm install webpack webpack-cli –-save-dev


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;We will make an src/app folder to contain all source files. I will start by creating a simple index.js file&lt;/p&gt;

&lt;h4&gt;
  
  
  3. Basic Configuration
&lt;/h4&gt;

&lt;p&gt;Let’s create a webpack.config.js at the root of the project.&lt;br&gt;
Touch webpack.config.js&lt;/p&gt;

&lt;h4&gt;
  
  
  4. Entry &amp;amp; Output
&lt;/h4&gt;

&lt;p&gt;In this example, we'll set the entry point to the src/index.js. We'll have it output in the dist folder, which is where production code gets built. The [name] in the output will be main.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7tt21bej5g6n6qoevc5u.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7tt21bej5g6n6qoevc5u.png" alt="Webpack"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  5. Build Webpack
&lt;/h4&gt;

&lt;p&gt;To run the script, we can make a build script that runs the webpack command.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkc1xbzeku1tr4ou5zx6z.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkc1xbzeku1tr4ou5zx6z.png" alt="Webpack"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  6. Now you can run it.
&lt;/h4&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

npm run build


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;The dist folder has been created with main.bundle.js.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjz6iyht89lsmqga3l7mz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjz6iyht89lsmqga3l7mz.png" alt="Webpack"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;So we now have webpack building successfully.&lt;/p&gt;

&lt;p&gt;We will start with &lt;strong&gt;Loaders&lt;/strong&gt; in our example&lt;/p&gt;

&lt;h4&gt;
  
  
  1. Styles
&lt;/h4&gt;

&lt;p&gt;For style, we will install style loader and SCSS, PostCSS, CSS loader packages.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;sass-loader – for SCSS and CSS compile&lt;/li&gt;
&lt;li&gt;node-sass – for node sass&lt;/li&gt;
&lt;li&gt;postcss-loader - Process CSS with PostCSS&lt;/li&gt;
&lt;li&gt;css-loader – resolve CSS imports&lt;/li&gt;
&lt;li&gt;style-loader – inject CSS into the Dom&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

npm i sass-loader postcss-loader css-loader style-loader postcss-preset-env node-sass --save-dev


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;We will make postCSS.config.js file and add it to the root.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgk0wjhajebxxicx5n1f0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgk0wjhajebxxicx5n1f0.png" alt="Webpack"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Also, add all loader in webpack config file.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgpx6tebijaaxugbjveac.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgpx6tebijaaxugbjveac.png" alt="Webpack"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Run to build, you'll see the Sass and PostCSS have been applied.&lt;/p&gt;

&lt;h4&gt;
  
  
  2. Images
&lt;/h4&gt;

&lt;p&gt;Create src/images and add an image to it, then try to import it into your index.js file.&lt;/p&gt;

&lt;p&gt;Once load the file-loader configured in the webpack.config.js&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

npm i file-loader --save-dev


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F53iu402gjlcjmsvit8u2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F53iu402gjlcjmsvit8u2.png" alt="Webpack"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You will get an option for output files where we want the exact path (dist/assets/images/**.jpg).&lt;/p&gt;

&lt;h4&gt;
  
  
  3. Fonts
&lt;/h4&gt;

&lt;p&gt;First, put your font files into one folder of your project's application. &lt;/p&gt;

&lt;p&gt;Need to load url-loader for features.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

npm i --save-dev url-loader


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqu6aecqal6yvpxzzwy9c.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqu6aecqal6yvpxzzwy9c.png" alt="Webpack"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  4. Javascript
&lt;/h4&gt;

&lt;p&gt;We are using &lt;code&gt;babel-loader&lt;/code&gt; for js. Babel is next-generation JavaScript. There are a few additional dependencies for Babel as well.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;babel-loader - Transpile files with webpack.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://www.npmjs.com/package/@babel/core" rel="noopener noreferrer"&gt;@babel/core&lt;/a&gt; - Backwards compatible JavaScript&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://babeljs.io/docs/en/babel-preset-env" rel="noopener noreferrer"&gt;@babel/preset-env&lt;/a&gt; - Smart defaults for Babel&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://babeljs.io/docs/en/babel-plugin-proposal-class-properties" rel="noopener noreferrer"&gt;@babel/plugin-proposal-class-properties&lt;/a&gt; - Custom Babel config &lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

npm i -D babel-loader @babel/core @babel/preset-env @babel/preset-env @babel/plugin-proposal-class-properties


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Now we will add some code for load js in webpack.config.js.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fu5xazqm8iao8d6npkjix.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fu5xazqm8iao8d6npkjix.png" alt="Webpack"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We create a .babelrc file in the root of the project for Babel Plugins. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1jip3n31mhxoy4pqcg6g.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1jip3n31mhxoy4pqcg6g.png" alt="Webpack"&gt;&lt;/a&gt;&lt;br&gt;
Run npm build, all code set without any error.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

npm run build


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h4&gt;
  
  
  5. Plugins for HTML
&lt;/h4&gt;

&lt;p&gt;How can configuring webpack to generate HTML with &lt;br&gt;
&lt;a href="https://webpack.js.org/plugins/html-webpack-plugin/" rel="noopener noreferrer"&gt;HtmlWebpackPlugin&lt;/a&gt; which create file from a template. First, install the plugin.&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

npm install html-webpack-plugin --save-dev


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Create a template.html file in the src folder. We can pass a hash of configuration '&lt;strong&gt;title&lt;/strong&gt;' options to html-webpack-plugin. &lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fu6symboe77tntzihaoem.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fu6symboe77tntzihaoem.png" alt="Webpack"&gt;&lt;/a&gt;&lt;br&gt;
And also add code in webpack config file to build HTML&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzchpdn9sj2w4kbkrc4fx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzchpdn9sj2w4kbkrc4fx.png" alt="Webpack"&gt;&lt;/a&gt;&lt;br&gt;
Now run a build again. See the dist folder now contains an &lt;br&gt;
index.html with the bundle.&lt;/p&gt;

&lt;h4&gt;
  
  
  6. Mode of Development
&lt;/h4&gt;

&lt;p&gt;To set up for development, we will install &lt;code&gt;webpack-dev-server&lt;/code&gt;. Webpack gives us the option to easily install a server with live &lt;br&gt;
reloading.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://github.com/webpack/webpack-dev-server" rel="noopener noreferrer"&gt;webpack-dev-server&lt;/a&gt; - Development server for webpack
```
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;npm install --save-dev webpack-dev-server&lt;/p&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Again add a line `mode:'development'` to webpack.config.js file. and for run server add a script in package.json:

![Webpack](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7vll5vo6z6qg8dbbjyww.png)
![Webpack](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m25fpgqm6g8dbszfotjh.png)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;npm start&lt;/p&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;When running this command, a link to **localhost:8080** will automatically pop up in your browser

That shall be enough to get you to start with webpack! We've covered all (Basic,Plugins,Loaders) of the basic Webpack concepts. For further exploration of webpack’s capabilities we recommend official docs [Webpack](https://webpack.js.org/)

Hope you like it guys here we end our Webpack basic setup! Thank you so much for reading the post.

I am working on Dash UI project which build on gulp js.[Dash UI](https://github.com/codescandy/Dash-UI) 

Happy Coding :)

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>beginners</category>
      <category>javascript</category>
      <category>webpack</category>
      <category>webdev</category>
    </item>
    <item>
      <title>How to update package.json dependencies</title>
      <dc:creator>anitaparmar26</dc:creator>
      <pubDate>Wed, 25 Aug 2021 06:03:46 +0000</pubDate>
      <link>https://dev.to/anitaparmar26/how-to-update-package-json-dependencies-3oh6</link>
      <guid>https://dev.to/anitaparmar26/how-to-update-package-json-dependencies-3oh6</guid>
      <description>&lt;p&gt;If you've ever installed npm packages and you got same version (not upgrade packages). So not worry just three lines of code will help to update.&lt;/p&gt;

&lt;p&gt;This &lt;a href="https://www.npmjs.com/package/npm-check-updates" rel="noopener noreferrer"&gt;npm-check-updates&lt;/a&gt; is a utility that automatically adjusts a package.json with the latest version of all dependencies.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ npm i -g npm-check-updates
$ ncu -u
$ npm install
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;1. $ npm i -g npm-check-updates&lt;/code&gt; &lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fivcnjlj8e1nv6qylmjd2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fivcnjlj8e1nv6qylmjd2.png" alt="Update NPM Dependencies"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;2. $ ncu -u&lt;/code&gt; &lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6kd6hol3f135twg5c2cb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6kd6hol3f135twg5c2cb.png" alt="Update NPM Dependencies"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;3. $ npm install&lt;/code&gt; &lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzoaym2mrd3vupd1860ou.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzoaym2mrd3vupd1860ou.png" alt="Update NPM Dependencies"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Thank you for reading.&lt;/strong&gt; &lt;/p&gt;

</description>
      <category>npm</category>
      <category>webdev</category>
      <category>beginners</category>
      <category>devops</category>
    </item>
    <item>
      <title>How to use 'CSSNANO' in Gulp</title>
      <dc:creator>anitaparmar26</dc:creator>
      <pubDate>Fri, 16 Apr 2021 10:11:19 +0000</pubDate>
      <link>https://dev.to/anitaparmar26/how-to-use-cssnano-in-gulp-3i2i</link>
      <guid>https://dev.to/anitaparmar26/how-to-use-cssnano-in-gulp-3i2i</guid>
      <description>&lt;p&gt;&lt;strong&gt;Hello Folks&lt;/strong&gt;,&lt;/p&gt;

&lt;p&gt;This is Anita here and it’s my first post. I want to share how to use cssnano to minify CSS through gulp js which is very flexible &amp;amp; the fastest build tool for Front end development. &lt;/p&gt;

&lt;h2&gt;
  
  
  What is Gulp?
&lt;/h2&gt;

&lt;p&gt;First, let’s define what is Gulp. According to the official site, Gulp is a toolkit to automate &amp;amp; enhance your workflow and also enables you to compile, minify and concatenate any files around your project directory where you will be running a web server. So we will go into more detail a bit further down setup.&lt;/p&gt;

&lt;h2&gt;
  
  
  Some quick setup
&lt;/h2&gt;

&lt;p&gt;First of all, you will need to have a node installed on your machine.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;node  --version&lt;/li&gt;
&lt;li&gt;npm install --global gulp-cli&lt;/li&gt;
&lt;li&gt;npm init (for package.json)&lt;/li&gt;
&lt;li&gt;npm install gulp --save-dev (devDependencies)&lt;/li&gt;
&lt;li&gt;npm install gulp-sass --save-dev (devDependencies)&lt;/li&gt;
&lt;li&gt;npm install autoprefixer --save-dev (devDependencies)&lt;/li&gt;
&lt;li&gt;npm install postcss gulp-postcss --save-dev (devDependencies)&lt;/li&gt;
&lt;li&gt;npm install cssnano --save-dev (devDependencies)&lt;/li&gt;
&lt;li&gt;npm install gulp-rename --save-dev (devDependencies)&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;After installing with the --save-dev mark will include it in the package.json underneath the devDependencies. Let’s start to create a new file, name it &lt;strong&gt;gulpfile.js&lt;/strong&gt; which writes all the code to automate tasks.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function defaultTask(cb) {
    console.log ('hello word')
    cb();
  }

 exports.default = defaultTask
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Let’s try it on command prompt and type:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;gulp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Hit the enter and you will see something like below.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[13:50:33] Using gulpfile E:\2021\gulp-post-cssnano\gulpfile.js
[13:50:33] Starting 'default'...
hello word
[13:50:33] Finished 'default' after 4.64 ms
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Congratulations. You’ve just written your first Gulp task.&lt;/p&gt;

&lt;p&gt;The default task was run.&lt;/p&gt;

&lt;h2&gt;
  
  
  Start with CSSNANO
&lt;/h2&gt;

&lt;p&gt;Before diving into a purposeful task for CSS minify through &lt;strong&gt;‘CSSNANO’&lt;/strong&gt;. When I am using &lt;strong&gt;gulp-cssnano&lt;/strong&gt; facing the issue &lt;strong&gt;px into pt&lt;/strong&gt; convert in gulp build time.&lt;/p&gt;

&lt;p&gt;So we are installing:  &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;a href="https://www.npmjs.com/package/gulp-postcss" rel="noopener noreferrer"&gt;Postcss, Gulp postcss&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.npmjs.com/package/autoprefixer" rel="noopener noreferrer"&gt;Autoprefixer&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.npmjs.com/package/cssnano" rel="noopener noreferrer"&gt;CSSNANO&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.npmjs.com/package/gulp-rename" rel="noopener noreferrer"&gt;Gulp Rename&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.npmjs.com/package/gulp-sass" rel="noopener noreferrer"&gt;Gulp Sass&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Folder Setup
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;src&lt;/strong&gt; — source files, pre-processed, un-minified.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;dist&lt;/strong&gt; — production files, processed, minified.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Let’s get started with the gulpfile.js task CSS minify from SCSS files.&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const { src, dest } = require("gulp");
const sass = require('gulp-sass');
const postcss = require('gulp-postcss');
const cssnano = require('cssnano');
const autoprefixer = require('autoprefixer');
const rename = require('gulp-rename');


// SCSS to CSS minify

function cssminify(callback) {
    return src('./src/scss/*.scss')
        .pipe(sass().on("error", sass.logError))
        .pipe(dest('./dist/css'))
        .pipe(postcss([ autoprefixer(), cssnano() ]))
        .pipe(rename({
            extname: '.min.css'
          }))
        .pipe(dest('./dist/css'));
    callback();
}
exports.cssminify = cssminify
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Run the task  &lt;strong&gt;“cssminify”&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;abcd@abcd-PC MINGW64 /e/2021/gulp-post-cssnano
$ gulp cssminify
[14:19:33] Using gulpfile E:\2021\gulp-post-cssnano\gulpfile.js
[14:19:33] Starting 'cssminify'...
[14:19:37] Finished 'cssminify' after 4.09 s
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnbeh1fn5gflt0xg7006l.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnbeh1fn5gflt0xg7006l.png" alt="CSS minify with CSSNANO"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;There’s so much more to learn about Gulp, this was just for CSS minify. Hope you guys had as much fun reading this article as I had writing it. Feel free to share if you believe it will be of help to someone.&lt;/p&gt;

&lt;p&gt;We used CSSNANO in our product &lt;a href="https://themes.getbootstrap.com/product/geeks-academy-admin-template/" rel="noopener noreferrer"&gt;&lt;strong&gt;Geeks Bootstrap Theme&lt;/strong&gt;&lt;/a&gt;,&lt;br&gt;
Geeks - beautiful designed UI Components based on Bootstrap Framework. It has marketing pages, course pages, &amp;amp; an admin dashboard.&lt;/p&gt;

&lt;p&gt;Thanks for reading. &lt;/p&gt;

</description>
      <category>gulp</category>
      <category>javascript</category>
      <category>webdev</category>
      <category>css</category>
    </item>
  </channel>
</rss>
