Laravel mix – Set different plugins options per entry

  laravel, laravel-mix

It there any way to provide different plugins options for each entry?

For example:

.sass('resources/assets/main.scss', 'public/css/main.css').options({
   //Set purifycss config options for main style (Mainly different paths)
   purifyCss: {},
   //Set purifycss config options for admin style
   purifyCss: {},

I have already tried the above configuration and purifyCss options are shared and not seperated.

Source: Laravel

Leave a Reply