[Plugin: #BW LESS-CSS] new feature – output filename
-
When using 3rd party less compilers (e.g. LiveReload) they sometimes don’t support the output filename of compiled filed. It would be great if you could extend bw_less_css to make it a parameter.
<php bw_less_css( 'custom.less', array('force' => true, 'filename' => 'custom.css') ); ?> .. in bw_less_css.php $defaults = array( 'media' => 'all', 'minify' => false, 'mobile' => false, 'hide_mobile' => false, 'force' => false, 'filename' => false ); .. if ( $filename !== false) { $output_name = $filename; } else { $output_name = $less . '.css'; }
- The topic ‘[Plugin: #BW LESS-CSS] new feature – output filename’ is closed to new replies.