-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Description
Summary
When using grunt to generate css, the associated sourcemaps use the prefix pub/ on all urls it generates. This forces the webserver config to employ a workaround to allow pub/ urls to continue to work, just for the sourcemaps. Sourcemaps should not use the pub/ prefix.
Examples
Deploy Vanilla 2.4.7-p1
cp Gruntfile.js.sample Gruntfile.js
php bin/magento deploy:mode:set development
grunt clean
grunt exec
grunt less
less pub/static/frontend/Magento/luma/en_US/css/styles-l.css.map
Observe the paths include pub/static
Browse to the frontend and inspect an element in the dev console.
Check the location of the less file obtained via the sourcemap
Although this will still work if your nginx config includes the following snippet
But isn't the use of /pub/ urls now unsupported?
Proposed solution
No response
Release note
less/css sourcemaps generated by grunt no longer use the /pub prefix for paths.
Triage and priority
- Severity: S0 - Affects critical data or functionality and leaves users without workaround.
- Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
- Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
- Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
- Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.