Split CSS in submodules and aggregate them with PHP or a precompiler
up vote
0
down vote
favorite
I'm working on improving a Wordpress Theme. The CSS file is long 41500 lines, of which many selectors are not used, and nowaday Google has become very strict on waste of resources (old smartphones with 3G is the target). By reading the CSS code I've realized that there is just on huge CSS for all the styles which can be chosen in the backend Admin section of the theme: /* ------------------------------------------------------------------- Style 1 ---------------------------------------------------------------------- */ How should I proceed? I've read of Grunt, Webpack but I don't know them. Any suggestion?
php css optimization
share | improve this question
...