[wp-trac] [WordPress Trac] #52377: Twenty Twenty-One: Re-add .css.map files

WordPress Trac noreply at wordpress.org
Thu Feb 11 04:00:07 UTC 2021


#52377: Twenty Twenty-One: Re-add .css.map files
---------------------------+---------------------
 Reporter:  poena          |       Owner:  (none)
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  5.7
Component:  Bundled Theme  |     Version:  5.6
 Severity:  normal         |  Resolution:
 Keywords:  has-patch      |     Focuses:
---------------------------+---------------------

Comment (by peterwilsoncc):

 There's a good chance I am missing some context but I am a little worried
 about committing the map file changes.

 The map file is formatted as a single line, so each time there is a CSS
 change is committed the file will essentially need to be recommitted
 again. As these are fairly large files this could increase the size of the
 repository substantially:

 `assets/css/ie-editor.css.map`: 24K
 `assets/css/ie.css.map`: 55K
 `assets/css/print.css.map`: 803 bytes
 `assets/css/style-dark-mode.css.map`: 540 bytes
 `assets/css/style-editor.css.map`: 11KB
 `style.css.map`: 23K
 Total: 114K

 I also have a bias towards committing as few built files as possible, so
 that colours my view (and can colour your view of my response ;)

 Without been built as part of the root directory, I'm also worried they
 would be missed during commits and end up out of date.

 Is it common that bundled theme developers don't use the wordpress-develop
 repo so are not able to build the map files themselves?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52377#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list