neilime / zf2-assets-bundle

AssetsBundle is a module for Zend Framework 2 allowing asset managment (bundling & caching)
https://neilime.github.io/zf2-assets-bundle/
MIT License
33 stars 20 forks source link

bootstrap.min.css caching problem. #36

Closed BartoszBartniczak closed 7 years ago

BartoszBartniczak commented 9 years ago

I was trying to do some demo app today and I was doing it step by step by tutorial. And i have a weird problem. I can add ( to the asset_bundle array) all css files except bootstrap.min.css file. It causes that connection is reset. When i delete that line everything works fine. Have you any idea what causes that problem?

neilime commented 9 years ago

Can you show me the configuration that resets the connection and the configuration that works

BartoszBartniczak commented 9 years ago

I am sorry i have not replied for so long. The commented line causes the problem: 'asset_bundle' => array( 'assets' => array( 'css' => array( // 'css/bootstrap.min.css', 'css/bootstrap-theme.min.css', 'css/style.css', ), 'js' => array( 'js/jquery.min.js', 'js/bootstrap.min.js' ), 'media' => array('img', 'fonts') ) ),

Do you think that Bootstrap 3 might cause the problem?

neilime commented 9 years ago

Yes you're right. This is because of a bug into lessphp (https://github.com/leafo/lessphp/issues/503), I am trying to change the less compiler with another less compiler : oyejorge/less.php. Any help is welcome