volodymyr-lisniak / magento-2-gulp

Gulp for Magento 2. It works with core Magento styles (less) and structure. Uses default theme configs from dev/tools/grunt/configs/local-themes.js.
MIT License
41 stars 12 forks source link

Integrate uncss task for gulp #29

Open mrtuvn opened 3 years ago

mrtuvn commented 3 years ago

This is not a bug i think we should have integrate gulp task uncss to reduce unused css would be nice feature. Similar purgeCss from tailwindcss Maybe have better package than uncss out there

package may be related postcss-uncss gulp-purgecss

We can allow config entrypoints to same common page for purging styles unused (home, category, details product page) Default styles of magento quite big and only ~20-30% used