<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Articles &#8211; Cristian Nebunu</title>
	<atom:link href="https://cristiannebunu.com/category/articles/feed/" rel="self" type="application/rss+xml" />
	<link>https://cristiannebunu.com</link>
	<description>Full Stack Developer - Laravel / Vue.js / WordPress</description>
	<lastBuildDate>Sat, 07 Nov 2026 15:37:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.4</generator>
	<item>
		<title>[code-snippet] Create temporary download URLs in Laravel</title>
		<link>https://cristiannebunu.com/code-snippet-create-temporary-download-urls-in-laravel/</link>
		
		<dc:creator><![CDATA[Cristian N]]></dc:creator>
		<pubDate>Thu, 06 Mar 2025 07:00:00 +0000</pubDate>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Quick Tips]]></category>
		<guid isPermaLink="false">https://cristiannebunu.com/?p=636</guid>

					<description><![CDATA[<p>You can use temporary download URLs for your cloud storage resources to prevent unwanted access. For example, when a user wants to download a file, we redirect to an s3 resource but have the URL expire in 5 seconds</p>
<p>The post <a rel="nofollow" href="https://cristiannebunu.com/code-snippet-create-temporary-download-urls-in-laravel/">[code-snippet] Create temporary download URLs in Laravel</a> appeared first on <a rel="nofollow" href="https://cristiannebunu.com">Cristian Nebunu</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">You can use temporary download URLs for your cloud storage resources to prevent unwanted access. For example, when a user wants to download a file, we redirect to an s3 resource but have the URL expire in 5 seconds</p>



<pre class="EnlighterJSRAW" data-enlighter-language="generic" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">public function download(File $file)
{
    return redirect()->to(
        Storage::disk('s3')->temporaryUrl($file->name, now()->addSeconds(5))
    );
}</pre>



<p class="wp-block-paragraph"></p>
<p>The post <a rel="nofollow" href="https://cristiannebunu.com/code-snippet-create-temporary-download-urls-in-laravel/">[code-snippet] Create temporary download URLs in Laravel</a> appeared first on <a rel="nofollow" href="https://cristiannebunu.com">Cristian Nebunu</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>[code-snippet] Using hash ids to cloak incremental ids</title>
		<link>https://cristiannebunu.com/code-snippet-using-hash-ids-to-cloak-incremental-ids/</link>
		
		<dc:creator><![CDATA[Cristian N]]></dc:creator>
		<pubDate>Wed, 05 Mar 2025 04:00:00 +0000</pubDate>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Quick Tips]]></category>
		<guid isPermaLink="false">https://cristiannebunu.com/?p=634</guid>

					<description><![CDATA[<p>This one is for the cases where you may not want to use your incremental DB id in your url. So if now you have something like example.com/1 , you can use this package and encode your id to look like example.com/Dfs24…</p>
<p>The post <a rel="nofollow" href="https://cristiannebunu.com/code-snippet-using-hash-ids-to-cloak-incremental-ids/">[code-snippet] Using hash ids to cloak incremental ids</a> appeared first on <a rel="nofollow" href="https://cristiannebunu.com">Cristian Nebunu</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">This one is for the cases where you may not want to use your incremental DB id in your url. </p>



<p class="wp-block-paragraph">So if now you have something like <code>example.com/1</code> , you can use this <a href="https://github.com/sqids/sqids-php" target="_blank" rel="noopener">package</a> and encode your id to look like <code>example.com/Dfs24</code> . This way you have a layer of anonymity in front of your incremental ids.</p>



<p class="wp-block-paragraph">Keep in mind though, this will not encrypt your id, it will just mask it, and someone may be able to decode it.</p>



<pre class="EnlighterJSRAW" data-enlighter-language="generic" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">trait HashId 
{
    public function scopeByHashId(Builder $query, string $hash) {
        $query->where('id', '=', Sqids::decode($hash)[0]); 
    }
}

class Order extends Model 
{
    use HashId;
}</pre>
<p>The post <a rel="nofollow" href="https://cristiannebunu.com/code-snippet-using-hash-ids-to-cloak-incremental-ids/">[code-snippet] Using hash ids to cloak incremental ids</a> appeared first on <a rel="nofollow" href="https://cristiannebunu.com">Cristian Nebunu</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>[code-snippet] HTML forms attributes on elements outside of the actual form</title>
		<link>https://cristiannebunu.com/code-snippet-html-forms-attributes-on-elements-outside-of-the-actual-form/</link>
		
		<dc:creator><![CDATA[Cristian N]]></dc:creator>
		<pubDate>Tue, 04 Mar 2025 07:00:00 +0000</pubDate>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Quick Tips]]></category>
		<guid isPermaLink="false">https://cristiannebunu.com/?p=629</guid>

					<description><![CDATA[<p>Took me 10+ years to discover that form elements have a &#8220;form&#8221; attribute And can be used outside of the parent &#60;form&#62; element natively With this, when you submit the form, the form data will contain the select that has the :form…</p>
<p>The post <a rel="nofollow" href="https://cristiannebunu.com/code-snippet-html-forms-attributes-on-elements-outside-of-the-actual-form/">[code-snippet] HTML forms attributes on elements outside of the actual form</a> appeared first on <a rel="nofollow" href="https://cristiannebunu.com">Cristian Nebunu</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Took me 10+ years to discover that form elements have a &#8220;form&#8221; attribute</p>



<p class="wp-block-paragraph">And can be used outside of the parent &lt;form&gt; element natively</p>



<pre class="EnlighterJSRAW" data-enlighter-language="html" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">&lt;div>
    &lt;label>
        Some data outside of the my-form
        &lt;select form="my-form">
            &lt;option value="country">France&lt;/option>
        &lt;/select>
    &lt;/label>
&lt;/div>

&lt;form action="/data" method="get" id="my-form">
    &lt;label>
        Name
        &lt;input type="text" value="name" />
    &lt;/label>

    &lt;button type="submit">Send&lt;/button>
&lt;/form></pre>



<p class="wp-block-paragraph">With this, when you submit the form, the form data will contain the select that has the :form attribute &#8211; WILD!</p>



<p class="wp-block-paragraph"></p>
<p>The post <a rel="nofollow" href="https://cristiannebunu.com/code-snippet-html-forms-attributes-on-elements-outside-of-the-actual-form/">[code-snippet] HTML forms attributes on elements outside of the actual form</a> appeared first on <a rel="nofollow" href="https://cristiannebunu.com">Cristian Nebunu</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>[code-snippet] How to add columns after a certain existing column with Laravel migrations</title>
		<link>https://cristiannebunu.com/code-snippet-how-to-add-columns-after-a-certain-existing-column-with-laravel-migrations/</link>
		
		<dc:creator><![CDATA[Cristian N]]></dc:creator>
		<pubDate>Mon, 03 Mar 2025 07:00:00 +0000</pubDate>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Quick Tips]]></category>
		<guid isPermaLink="false">https://cristiannebunu.com/?p=625</guid>

					<description><![CDATA[<p>I recently needed to add columns to an existing table in a Laravel project and I had to reach to this functionality, hope you find it helpful:</p>
<p>The post <a rel="nofollow" href="https://cristiannebunu.com/code-snippet-how-to-add-columns-after-a-certain-existing-column-with-laravel-migrations/">[code-snippet] How to add columns after a certain existing column with Laravel migrations</a> appeared first on <a rel="nofollow" href="https://cristiannebunu.com">Cristian Nebunu</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">I recently needed to add columns to an existing table in a Laravel project and I had to reach to this functionality, hope you find it helpful:</p>



<pre class="EnlighterJSRAW" data-enlighter-language="php" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">/**
 * Run the migrations.
 */
public function up(): void
{
    Schema::create('jobs', function (Blueprint $table) {
        $table->after('payload', function (Blueprint $table) {
            $table->unsignedInteger('reserved_at')->nullable();
            $table->unsignedInteger('available_at');
        });
    });
}</pre>
<p>The post <a rel="nofollow" href="https://cristiannebunu.com/code-snippet-how-to-add-columns-after-a-certain-existing-column-with-laravel-migrations/">[code-snippet] How to add columns after a certain existing column with Laravel migrations</a> appeared first on <a rel="nofollow" href="https://cristiannebunu.com">Cristian Nebunu</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>[code-snippet] Create a date interval filter helper in PHP / Laravel</title>
		<link>https://cristiannebunu.com/code-snippet-create-a-date-interval-filter-helper-in-php-laravel/</link>
		
		<dc:creator><![CDATA[Cristian N]]></dc:creator>
		<pubDate>Sun, 02 Mar 2025 16:00:00 +0000</pubDate>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Quick Tips]]></category>
		<guid isPermaLink="false">https://cristiannebunu.com/?p=622</guid>

					<description><![CDATA[<p>I was looking into date filters for a project I am working on and I thought I would share the filter helper class I am now using, it may be of some use to someone out there: First seen at: https://x.com/mmartin_joo/status/1671518854101475330</p>
<p>The post <a rel="nofollow" href="https://cristiannebunu.com/code-snippet-create-a-date-interval-filter-helper-in-php-laravel/">[code-snippet] Create a date interval filter helper in PHP / Laravel</a> appeared first on <a rel="nofollow" href="https://cristiannebunu.com">Cristian Nebunu</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">I was looking into date filters for a project I am working on and I thought I would share the filter helper class I am now using, it may be of some use to someone out there:</p>



<pre class="EnlighterJSRAW" data-enlighter-language="php" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">// The date helper
class DateFilter
{
    public function __construct(
        public readonly Carbon $start,
        public readonly Carbon $end
    ) {}
    
    public static function today(): self
    {
        return new self(
            start: now()->startOfDay(),
            end: now(),
        );
    }

    public static function thisWeek(): self
    {
        return new self(
            start: now()->startOfWeek(),
            end: now(),
        );
    }
}

// And we can use it like this - or of course however fits your code
public function getNewUsers(): NewUsersCount
{
    return new NewUsersCount(
        today: User::whereCreatedBetween(DateFilter::today())->count(),
        thisWeek: User::whereCreatedBetween(DateFilter::thisWeek())->count(),
    );
}</pre>



<p class="wp-block-paragraph">First seen at: <a href="https://x.com/mmartin_joo/status/1671518854101475330">https://x.com/mmartin_joo/status/1671518854101475330</a></p>



<p class="wp-block-paragraph"></p>
<p>The post <a rel="nofollow" href="https://cristiannebunu.com/code-snippet-create-a-date-interval-filter-helper-in-php-laravel/">[code-snippet] Create a date interval filter helper in PHP / Laravel</a> appeared first on <a rel="nofollow" href="https://cristiannebunu.com">Cristian Nebunu</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Laravel quick tips: Getting alternative values in config files</title>
		<link>https://cristiannebunu.com/laravel-quick-tips-getting-alternative-values-in-config-files/</link>
		
		<dc:creator><![CDATA[Cristian N]]></dc:creator>
		<pubDate>Wed, 24 Nov 2021 18:34:16 +0000</pubDate>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Quick Tips]]></category>
		<category><![CDATA[Thoughts]]></category>
		<guid isPermaLink="false">https://cristiannebunu.com/?p=489</guid>

					<description><![CDATA[<p>When working with the Laravel config files you may set a default value on env retrieval. This may cause an issue when the key exists in the env file but has no value so a solution is to use the ternary shorthand:…</p>
<p>The post <a rel="nofollow" href="https://cristiannebunu.com/laravel-quick-tips-getting-alternative-values-in-config-files/">Laravel quick tips: Getting alternative values in config files</a> appeared first on <a rel="nofollow" href="https://cristiannebunu.com">Cristian Nebunu</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">When working with the Laravel config files you may set a default value on env retrieval. This may cause an issue when the key exists in the env file but has no value so a solution is to use the ternary shorthand:</p>



<pre class="EnlighterJSRAW" data-enlighter-language="generic" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">/**
* In the .env file
*
* TITLE=
* ALT_TITLE='Wheel Of Time'
*/

return [
    'title' => env('TITLE', env('ALT_TITLE')); 
    // will return null because the TITLE key
    // exists but is empty

    'title' => env('TITLE') ?: env('ALT_TITLE'); 
    // this one however will return 'Wheel Of Time' 
]

</pre>



<p class="wp-block-paragraph">Originally seen at: <a href="https://twitter.com/michaeldyrynda/status/1433210939126464515" target="_blank" rel="noopener">https://twitter.com/michaeldyrynda/status/1433210939126464515</a></p>
<p>The post <a rel="nofollow" href="https://cristiannebunu.com/laravel-quick-tips-getting-alternative-values-in-config-files/">Laravel quick tips: Getting alternative values in config files</a> appeared first on <a rel="nofollow" href="https://cristiannebunu.com">Cristian Nebunu</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to setup a WordPress local environment with Laravel Homestead</title>
		<link>https://cristiannebunu.com/how-to-setup-a-wordpress-local-environment-with-laravel-homestead/</link>
		
		<dc:creator><![CDATA[Cristian N]]></dc:creator>
		<pubDate>Mon, 25 May 2020 17:15:39 +0000</pubDate>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://cristiannebunu.com/?p=420</guid>

					<description><![CDATA[<p>I was switching between working on a Laravel project and working on updating the theme for this site and I found myself starting Local by Flywheel, when I realised that I have a Homestead machine running in the background. So I figured…</p>
<p>The post <a rel="nofollow" href="https://cristiannebunu.com/how-to-setup-a-wordpress-local-environment-with-laravel-homestead/">How to setup a WordPress local environment with Laravel Homestead</a> appeared first on <a rel="nofollow" href="https://cristiannebunu.com">Cristian Nebunu</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>I was switching between working on a Laravel project and working on updating the theme for this site and I found myself starting <a href="https://localwp.com/" target="_blank" rel="noopener noreferrer">Local by Flywheel</a>, when I realised that I have a <a href="https://laravel.com/docs/7.x/homestead" target="_blank" rel="noopener noreferrer">Homestead</a> machine running in the background. So I figured that I should make WordPress work on Homestead as well. As it seems, it&#8217;s not all that complicated.</p>
<p>I develop on a windows machine so your folder structures may differ a bit, but this is how this looks for me:</p>
<ul>
<li><code class="EnlighterJSRAW" data-enlighter-language="generic">homestead/</code> &#8212; the location of the homestead machine</li>
<li><code class="EnlighterJSRAW" data-enlighter-language="generic">wp/</code> &#8212; local root of the WordPress instance</li>
<li><code class="EnlighterJSRAW" data-enlighter-language="generic">laravel/</code> &#8212; local root of the Laravel instance</li>
</ul>
<p>The initial setup of the homestead machine is as follows:</p>
<ul>
<li>move inside the <code class="EnlighterJSRAW" data-enlighter-language="generic">homestead/</code> folder, run the <code class="EnlighterJSRAW" data-enlighter-language="generic">composer init</code> command and run through the setup.</li>
<li>run <code class="EnlighterJSRAW" data-enlighter-language="generic">composer require laravel/homestead --dev</code></li>
<li>run <code class="EnlighterJSRAW" data-enlighter-language="generic">vendor\\bin\\homestead make</code> ( or if you are on a Mac <code class="EnlighterJSRAW" data-enlighter-language="generic">php vendor/bin/homestead make</code>)</li>
</ul>
<p>Now we move to edit the Homestead.yml file:</p>
<ul>
<li>the first things I usually set differently are</li>
</ul>
<pre class="EnlighterJSRAW" data-enlighter-language="generic">memory: 4096
provider: hyperv
ssl: true</pre>
<ul>
<li>next we map the wp/ and laravel/ to the internal homestead directories:</li>
</ul>
<pre class="EnlighterJSRAW" data-enlighter-language="generic">folders:
    -
        map: 'E:\Projects\podcast-directory'
        to: /home/vagrant/code/podcast
    -
        map: 'E:\Projects\wp-main'
        to: /home/vagrant/code/wp-main</pre>
<ul>
<li>next we map the sites</li>
</ul>
<pre class="EnlighterJSRAW" data-enlighter-language="generic">sites:
    -
        map: podcast.test
        to: /home/vagrant/code/podcast/public
    -
        map: wp.test
        to: /home/vagrant/code/wp-main</pre>
<ul>
<li>next we set up the databases</li>
</ul>
<pre class="EnlighterJSRAW" data-enlighter-language="generic">databases:
    - homestead
    - wp-main</pre>
<p>And the last step would be to run a <code class="EnlighterJSRAW" data-enlighter-language="generic">vagrant up</code>, and that&#8217;s pretty much it.</p>
<p>The post <a rel="nofollow" href="https://cristiannebunu.com/how-to-setup-a-wordpress-local-environment-with-laravel-homestead/">How to setup a WordPress local environment with Laravel Homestead</a> appeared first on <a rel="nofollow" href="https://cristiannebunu.com">Cristian Nebunu</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Clean up unused CSS with PurgeCSS on Laravel and WordPress</title>
		<link>https://cristiannebunu.com/clean-up-unused-css-with-purgecss-on-laravel-and-wordpress/</link>
		
		<dc:creator><![CDATA[Cristian N]]></dc:creator>
		<pubDate>Wed, 25 Jul 2018 11:43:39 +0000</pubDate>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">http://cristiannebunu.com/?p=348</guid>

					<description><![CDATA[<p>I read recently the article How I dropped 250KB of dead CSS weight with PurgeCSS 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…</p>
<p>The post <a rel="nofollow" href="https://cristiannebunu.com/clean-up-unused-css-with-purgecss-on-laravel-and-wordpress/">Clean up unused CSS with PurgeCSS on Laravel and WordPress</a> appeared first on <a rel="nofollow" href="https://cristiannebunu.com">Cristian Nebunu</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>I read recently the article <a href="https://medium.freecodecamp.org/how-i-dropped-250kb-of-dead-css-weight-with-purgecss-28821049fb" target="_blank" rel="noopener">How I dropped 250KB of dead CSS weight with PurgeCSS</a> 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&#8217;t make any promises.</p>
<p>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.</p>
<p>My Laravel config file looks like this</p>
<pre class="EnlighterJSRAW" data-enlighter-language="js" data-enlighter-theme="atomic">let mix = require('laravel-mix');

require("laravel-mix-tailwind");
require("laravel-mix-purgecss");


mix.browserSync({
    host: 'localhost',
    port: 3000,
    proxy: '192.168.10.22'
});

mix.js('resources/assets/js/app.js', 'public/js')
   .sass('resources/assets/css/main.scss', 'public/css')
   .options({
      processCssUrls: false,
   })
   .tailwind();
   .purgeCss();

if (mix.inProduction()) {
    mix.version();
}
</pre>
<p>&nbsp;</p>
<p>My WordPress config file looks like this</p>
<pre class="EnlighterJSRAW" data-enlighter-language="js">let mix = require("laravel-mix");
let tailwindcss = require("tailwindcss");

require('laravel-mix-purgecss');

const purgecssWordpress = {
    whitelistPatterns: [
        /^rtl(-.*)?$/,
        /^home(-.*)?$/,
        /^blog(-.*)?$/,
        /^archive(-.*)?$/,
        /^date(-.*)?$/,
        /^error404(-.*)?$/,
        /^logged-in(-.*)?$/,
        /^admin-bar(-.*)?$/,
        /^no-customize-support(-.*)?$/,
        /^wp-custom-logo(-.*)?$/,
        /^search(-.*)?$/,
        /^nav(-.*)?$/,
        /^wp(-.*)?$/,
        /^screen(-.*)?$/,
        /^navigation(-.*)?$/,
        /^(.*)-template(-.*)?$/,
        /^(.*)?-?single(-.*)?$/,
        /^postid-(.*)?$/,
        /^post-(.*)?$/,
        /^attachmentid-(.*)?$/,
        /^attachment(-.*)?$/,
        /^page(-.*)?$/,
        /^(post-type-)?archive(-.*)?$/,
        /^author(-.*)?$/,
        /^gallery(-.*)?$/,
        /^category(-.*)?$/,
        /^tag(-.*)?$/,
        /^card(-.*)?$/,
        /^menu(-.*)?$/,
        /^tags(-.*)?$/,
        /^tax-(.*)?$/,
        /^term-(.*)?$/,
        /^date-(.*)?$/,
        /^(.*)?-?paged(-.*)?$/,
        /^says(-.*)?$/,
        /^depth(-.*)?$/,
        /^comment(-.*)?$/,
        /^comments(-.*)?$/,
        /^children(-.*)?$/,
        /^crnb(-.*)?$/,
        /^custom(-.*)?$/,
        /^custom-background(-.*)?$/,
        /^port-description(-.*)?$/
    ]
};

mix
    .browserSync({
        proxy: "custom.local",
        files: ["./**/*.css", "./**/*.js", "./**/*.php", "./*.php"]
    });

mix
    .js("assets/js/custom/custom.js", "assets/js")
    .postCss("assets/css/style.css", "./", [
        tailwindcss("./tailwind-config.js")
    ])
    .options({
        publicPath: "./"
    })
    .purgeCss({
        // enabled: true,
        globs: [
            path.join(__dirname, './../**/*.css'),
            path.join(__dirname, './../**/*.php'),
            path.join(__dirname, './../**/*.vue'),
            path.join(__dirname, './../src/**/*.js'),
        ],
        extensions: ['html', 'js', 'php', 'vue', 'css'],
        whitelistPatterns: purgecssWordpress.whitelistPatterns
    });</pre>
<p>&nbsp;</p>
<p>The post <a rel="nofollow" href="https://cristiannebunu.com/clean-up-unused-css-with-purgecss-on-laravel-and-wordpress/">Clean up unused CSS with PurgeCSS on Laravel and WordPress</a> appeared first on <a rel="nofollow" href="https://cristiannebunu.com">Cristian Nebunu</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
