lundi 18 juin 2018

how to use purify css in laravel mix?

my stack :

laravel : 5.5.40

npm:6.0.0

nodeJs: 8.10

i want use purifycss in laravel but not working . here the code :

    mix.styles([
  'resources/assets/css/panel/a.css',
  'resources/assets/css/panel/b.css',
  'resources/assets/css/panel/c.css',
  'resources/assets/css/panel/d.css',
], 'public/css/panel.css').options({
  purifyCss: {
    purifyOptions: {
      info: true,
      rejected: true,
      minify: true
    },
    paths: ['resources/views/admin-layout.blade.php'],
    verbose:true

  },
});

i was search on the internet but not find anything .

i want strip unused css in all blade pages. Even on this link, nobody answered the correct answer

Even if the purifyCss is the first not working .

thanks for help me .



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2tdtf6Y
via IFTTT

Aucun commentaire:

Enregistrer un commentaire