Optimizing your stylesheets and script files can enhance the performance of your website.
However, there may be cases where you need to offer the non-minified versions of the files - whether it's for GPL compliance or to adhere to the optional code-on-demand REST constraint.
Is there a standardized method for achieving this? The only approach I can think of is using a specific naming convention:
http://example.com/css/styles.min.css
- minified version
http://example.com/css/styles.css
- non-minified version
The downside to this method is that it depends on an external agreement. Is there a more systematic way to implement non-minified code-on-demand?