<?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: Cristian N</title>
    <description>The latest articles on DEV Community by Cristian N (@cristiannebunu).</description>
    <link>https://dev.to/cristiannebunu</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%2F75739%2Fc973235c-615c-4614-a153-a8583f0666e6.jpg</url>
      <title>DEV Community: Cristian N</title>
      <link>https://dev.to/cristiannebunu</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/cristiannebunu"/>
    <language>en</language>
    <item>
      <title>Clean up unused CSS with PurgeCSS on Laravel and WordPress</title>
      <dc:creator>Cristian N</dc:creator>
      <pubDate>Wed, 25 Jul 2018 16:15:40 +0000</pubDate>
      <link>https://dev.to/cristiannebunu/clean-up-unused-css-with-purgecss-on-laravel-and-wordpress-54b9</link>
      <guid>https://dev.to/cristiannebunu/clean-up-unused-css-with-purgecss-on-laravel-and-wordpress-54b9</guid>
      <description>&lt;p&gt;I read recently the article &lt;a href="https://medium.freecodecamp.org/how-i-dropped-250kb-of-dead-css-weight-with-purgecss-28821049fb"&gt;How I dropped 250KB of dead CSS weight with PurgeCSS&lt;/a&gt; and thought I should put out my setup for this situation. I use Laravel Mix for both Laravel development and also for my WordPress work. My main stack includes Vue.js and TailwindCSS, so these snippets will do just fine when working with these frameworks. Beyond that, I can’t make any promises.&lt;/p&gt;

&lt;p&gt;But as an endorsement to PurgeCSS, I will tell you, that for the past few projects I have done in WordPress, I managed to get my CSS file down to around 50 kB minified.&lt;/p&gt;

&lt;p&gt;My Laravel config file looks like this&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--iaQerYS2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/k2owuc8th6x969lbe79p.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--iaQerYS2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/k2owuc8th6x969lbe79p.png" alt="laravel config"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;My WordPress config file looks like this&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--X-0uex9f--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/53i67a8oi9q05y6rv0iy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--X-0uex9f--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/53i67a8oi9q05y6rv0iy.png" alt="wordpress config"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="http://cristiannebunu.com/clean-up-unused-css-with-purgecss-on-laravel-and-wordpress"&gt;cristiannebunu.com&lt;/a&gt; on July 25, 2018&lt;/em&gt;&lt;/p&gt;

</description>
      <category>laravel</category>
      <category>vue</category>
      <category>wordpress</category>
      <category>purgecss</category>
    </item>
  </channel>
</rss>
