Skip to content

thehe/diem-toLessCssPlugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

toLessCssPlugin

Dependencies

Install LESS-Compiler on the webserver - see http://lesscss.org/#usage for details.

Make lessc executable by the webserver and (if it is not in %PATH%) change the name and path in app.yml.

Configuration

Add this configuration in apps/front/config/app.yml

all:
  lessCss:
    # executable can be the less-compiler executable or empty for client-side rendering (not supported yet)
    executable: lessc
	# less-javascript file (see less.org)
	lessjs: less-1.4.2.min.js

Usage

Simply put your less file(s) in view.yml (eg. apps/front/config/view.yml) like

default:
  http_metas:
    content-type: text/html
  stylesheets:
    - layout
    - mystyle.less
    - main
    - markdown
  javascripts:
    - front
  has_layout:     true
  layout:         layout

In the example above, the file mystyle.less will be automatically compiled to mystyle.css and included instead of the .less-file.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published