widmogrod / zf2-assetic-module

Zend Framework module for Assetic
146 stars 62 forks source link

Conditional js/css #109

Open cmsfoyer opened 10 years ago

cmsfoyer commented 10 years ago

Is there any way to configure js/css files for IE conditional tags ?

eg something like :

    'assetic_configuration' => array(

        ....

        'modules' => array(
                    'html_js' => array(
                        'assets' => array(
                            'js/html5.js',
                        ),
                        'filters' => array(
                            'JSMinFilter' => array(
                                'name' => 'Assetic\Filter\JSMinFilter'
                            ),
                        ),
                        'options' => array(
                            'conditional' => 'lt IE 9',
                        ),
                    ),

That would give :

<!--[if lt IE 9]><script type="text/javascript" src="/js/vendor/html5.js"><![endif]-->
countless-integers commented 10 years ago

That would be useful.