Currently, and for many years, DXP has a complex minification scheme that involves minifiying resources on the fly in the server.
This has caused plenty of performance and runtime issues over time and has even stalled progress because the minifiers are outdated and don't support new language features.
The goal of this Epic is to design and implement a modern and robust strategy to serve minified CSS in DXP.
- The current minifier classes are deprecated and disabled by default
- A new mechanism (flag, setting) can be used to detect if the system is running in production or dev mode to decide which files to serve
- The new schema does not depend on runtime minification of assets
- Build process is updated to properly generate the necessary minified (and unminified) CSS in build time
CSS minification architecture should closely match the results of Simplify JS minification scheme in DXP