Skip to content
This repository has been archived by the owner on Oct 19, 2023. It is now read-only.

Latest commit

 

History

History
36 lines (25 loc) · 553 Bytes

README.md

File metadata and controls

36 lines (25 loc) · 553 Bytes

LESS HTML Plugin

Parse LESS on HTML files containing <style type=text/less> tags.

Example:

<!doctype html>
<title>LESS HTML Plugin test</title>
<body>
<style type=text/less>
  body {
    color: darken(red, 50%;
    p {
      color: white;
    }
  }
</style>
<p>It works!</p>

You now should get a warning about the missing parenthesis on line 6.

Note: the attribute type=text/less is necessary to correctly parse the tag contents.

Installation

npm install -g less-plugin-html

Usage

lessc --html file.html