<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Poonam Dubey on Medium]]></title>
        <description><![CDATA[Stories by Poonam Dubey on Medium]]></description>
        <link>https://medium.com/@poonamdubey1294?source=rss-3adeb9b7126c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*pUg3uHxbWNlor8Yg.jpg</url>
            <title>Stories by Poonam Dubey on Medium</title>
            <link>https://medium.com/@poonamdubey1294?source=rss-3adeb9b7126c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 07:48:17 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@poonamdubey1294/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Why Webpack ??]]></title>
            <link>https://medium.com/@poonamdubey1294/why-webpack-e482f8e12922?source=rss-3adeb9b7126c------2</link>
            <guid isPermaLink="false">https://medium.com/p/e482f8e12922</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[webpack]]></category>
            <category><![CDATA[reactjs]]></category>
            <dc:creator><![CDATA[Poonam Dubey]]></dc:creator>
            <pubDate>Tue, 12 Feb 2019 17:26:18 GMT</pubDate>
            <atom:updated>2019-02-12T17:27:27.436Z</atom:updated>
            <content:encoded><![CDATA[<h3>Why Webpack ??</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SL6RVjoNQaUdii2Qh9XeZg.png" /></figure><blockquote><strong>webpack </strong>is a <em>static module bundler</em> for modern JavaScript applications. When <strong>webpack </strong>processes your application, it internally builds a dependency graph which maps every module your project needs and generates one or more <em>bundles</em>.</blockquote><p><em>There are few </em><strong><em>core </em></strong><em>Concepts regarding Webpack:</em></p><ol><li>Entry</li><li>Output</li><li>Loaders</li><li>Plugin</li><li>Mode</li></ol><h3><strong>Entry</strong></h3><p>An entry point indicates which module webpack should use to begin building out its internal <a href="https://webpack.js.org/concepts/dependency-graph/">dependency graph</a>.</p><p>create a file named as <em>webpack.config.js</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/372/1*oPjQW7h3vyBo6V2EWQOg6A.png" /></figure><h3>Output</h3><p>The output property tells webpack where to emit the <em>bundles</em> it creates and how to name these files.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/547/1*U0T1Lm2CAiAPWiqgi8OMFw.png" /></figure><h3>Loaders</h3><p>Loaders allow webpack to process other types of files and convert them into valid <a href="https://webpack.js.org/concepts/modules">modules</a> that can be consumed by your application and added to the dependency graph.</p><p>At a high level, loaders have two properties in your webpack configuration:</p><ol><li>The test property identifies which file or files should be transformed.</li><li>The use property indicates which loader should be used to do the transforming.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/589/1*MmnnRmDXnTH_UrL33Rasfw.png" /></figure><h3>Plugin</h3><p>While loaders are used to transform certain types of modules, plugins can be leveraged to perform a wider range of tasks like bundle optimization, asset management and injection of environment variables.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/462/1*aclFTU5AlUQ6jr76MB-WaA.png" /></figure><h3>Mode</h3><p>By setting the mode parameter to either development, production or none, you can enable webpack&#39;s built-in optimizations that correspond to each environment. The default value is production.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/217/1*HhnreqoDpg1QoWGqfbS-eQ.png" /></figure><p>Setup webpack in Project:</p><p>Create a file named as webpack.config.js<br>Add dependencies for <em>eg: npm i webpack</em></p><p>Now add webpack in package.json file to run webpack-dev-derver</p><p>Add the command in terminal as <strong>npm start</strong>, server will start</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/559/1*JjqvjWfUECyGo_XRROtM_w.png" /></figure><p>Thanks for looking into it, Wait for more details…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e482f8e12922" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>