michtio / laravel-mix-criticalcss

mix.criticalcss()

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Documentation Needs Updating

SendDerek opened this issue · comments

Looks like the naming conventions have changed since writing the documentation.

Instead of:
require('laravel-mix-criticalcss');
Should use:
require('laravel-mix-critical');

Instead of:
mix.criticalCss({
Should use:
mix.critical({

At least, that's what got it working for me.

Oh, scrud... there are two projects with very similar names.
https://github.com/dadamotion/laravel-mix-criticalcss
https://github.com/rias500/laravel-mix-critical

I installed the wrong one.