Open adoerler opened 4 years ago
Hi,
if cssFileCompile is enabled, each file configured in the asset gets minified (using Minify_CSS::minify) at: https://github.com/skeeks-semenov/yii2-assets-auto-compress/blob/master/src/AssetsAutoCompressComponent.php#L534
cssFileCompile
Minify_CSS::minify
If cssFileCompress is enabled, it will get minified a few lines later again (using CssMin::minify): https://github.com/skeeks-semenov/yii2-assets-auto-compress/blob/master/src/AssetsAutoCompressComponent.php#L568
cssFileCompress
CssMin::minify
I think complie should only concatenate the asset files into a single CSS file and it should compress this single CSS file only once and only if cssFileCompress is enabled.
What do you think? Andreas
Hi,
if
cssFileCompile
is enabled, each file configured in the asset gets minified (usingMinify_CSS::minify
) at: https://github.com/skeeks-semenov/yii2-assets-auto-compress/blob/master/src/AssetsAutoCompressComponent.php#L534If
cssFileCompress
is enabled, it will get minified a few lines later again (usingCssMin::minify
): https://github.com/skeeks-semenov/yii2-assets-auto-compress/blob/master/src/AssetsAutoCompressComponent.php#L568I think complie should only concatenate the asset files into a single CSS file and it should compress this single CSS file only once and only if
cssFileCompress
is enabled.What do you think? Andreas