magento-2-gulp
magento-2-gulp copied to clipboard
Pub path is invalid when document root is pub
In magento 2 you can enable it so pub is your root for the frontend (to improve security). This is recommended by the Magento team.
This means that in urls the "pub" part is dropped (since it's the root).
In env.php
'directories' => [ 'document_root_is_pub' => true ],
enables this functionality.
I guess this module would need to detect if this is enabled or not and adjust the criticalCssPath as appropriate.