# atma-loader-less

> Less compiler for `atma-io`, `IncludeJS` and `atma-server`.

Latest version **1.1.5** (published 2019-05-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install atma-loader-less
pnpm add atma-loader-less
yarn add atma-loader-less
bun add atma-loader-less
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.5 |
| Published | 2019-05-21 |
| First published | 2014-04-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 5.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Alexander Kit |
| Maintainers | tenbits |

## Links

- npm: https://www.npmjs.com/package/atma-loader-less
- Repository: https://github.com/atmajs/atma-loader-less
- Homepage: https://github.com/atmajs/atma-loader-less#readme
- Issues: https://github.com/atmajs/atma-loader-less/issues
- npm.io page: https://npm.io/package/atma-loader-less

## Dependencies (3)

- [less](https://npm.io/package/less.md) ^3.0.4
- [atma-utils](https://npm.io/package/atma-utils.md) ^0.1.13
- [atma-io-middleware-base](https://npm.io/package/atma-io-middleware-base.md) ^1.0.31

## Recent versions

- 1.1.5 (latest) — 2019-05-21
- 1.1.0 — 2019-05-21
- 1.1.4 — 2018-08-28
- 1.1.2 — 2018-05-30
- 1.1.1 — 2018-05-29
- 1.0.5 — 2015-02-16
- 1.0.4 — 2014-07-27
- 1.0.3 — 2014-07-27
- 1.0.2 — 2014-05-05
- 1.0.1 — 2014-05-05
- 1.0.0 — 2014-05-04
- 0.0.14 — 2014-04-21
- 0.0.13 — 2014-04-21
- 0.0.12 — 2014-04-21
- 0.0.11 — 2014-04-21
- … 1 more at https://npm.io/package/atma-loader-less/versions

## README

[Less Compiler](http://lesscss.org) (Atma Plugin)
-----
[![Build Status](https://travis-ci.org/atmajs/atma-loader-less.png?branch=master)](https://travis-ci.org/atmajs/atma-loader-less)

The Plugin extends:
- [`IncludeJS`](https://github.com/atmajs/IncludeJS) with a custom loader
- [`atma-io`](https://github.com/atmajs/atma-io) with a custom middleware to read Less files
- [`atma-server`](https://github.com/atmajs/atma-server) and [`Atma Toolkit`](https://github.com/atmajs/Atma.Toolkit) with a `HTTPHandler` to serve compiled sources (with **sourceMap** support)



##### How to use

###### Embed into the Project

+ `atma plugin install atma-loader-less`
	
	This adds `atma-loader-less` npm dependency and the `package.json` would look like:
	```json
	{
		"dependency": {
			"atma-loader-less"
		},
		"atma": {
			"plugins": [
				"atma-loader-less"
			],
			"settings": {
				"less_loader": {
					"extension": "less"
				}
			}
		}
	}
	```
+ That's all. Now, you are ready to use 'dynamic stylesheets' in your project

##### Quick Try

+ install atma: `$ npm install atma -g`
+ install plugin: `$ atma plugin install atma-loader-less`
+ add `test.html` to the directory

    ```html
    <!DOCTYPE html>
    <link href='test.less' rel='stylesheet' />
    ```
+ add `test.less`
    
    ```css
    @color: green;
	body { background: @color; }
    ```
+ start the server: `$ atma server`
+ open the browser: `http://localhost:5777/test.html`



----
_(c) MIT License - Atma.js Project_

---
_Source: https://npm.io/package/atma-loader-less · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
