Documentation Needs Updating
SendDerek opened this issue · comments
Derek Hildreth commented
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.
Derek Hildreth commented
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.