# atma-loader-postmask

> Mask optimizers for `atma-io`, `IncludeJS` and `atma-server`.

Latest version **1.0.17** (published 2018-05-30) · MIT license · 0 weekly downloads

## Install

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

## 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.0.17 |
| Published | 2018-05-30 |
| First published | 2016-08-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 5.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Alexander Kit |
| Maintainers | tenbits |

## Links

- npm: https://www.npmjs.com/package/atma-loader-postmask
- npm.io page: https://npm.io/package/atma-loader-postmask

## Dependencies (3)

- [maskjs](https://npm.io/package/maskjs.md) >=0.54.33
- [postmask](https://npm.io/package/postmask.md) ^1.1.5
- [atma-io-middleware-base](https://npm.io/package/atma-io-middleware-base.md) ^1.0.28

## Recent versions

- 1.0.17 (latest) — 2018-05-30
- 1.0.16 — 2018-05-29
- 1.0.15 — 2018-05-29
- 1.0.14 — 2018-05-29
- 1.0.13 — 2018-05-29
- 1.0.12 — 2017-12-16
- 1.0.11 — 2017-11-24
- 1.0.10 — 2017-11-24
- 1.0.9 — 2017-11-20
- 1.0.8 — 2016-10-19
- 1.0.7 — 2016-10-12
- 1.0.6 — 2016-08-13

## README

[PostCSS Compiler](http://postcsscss.org) (Atma Plugin)
-----
[![Build Status](https://travis-ci.org/atmajs/atma-loader-postcss.png?branch=master)](https://travis-ci.org/atmajs/atma-loader-postcss)

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 PostCSS 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-postcss`
	
	This adds `atma-loader-postcss` npm dependency and the `package.json` would look like:
	```json
	{
		"dependency": {
			"atma-loader-postcss"
		},
		"atma": {
			"plugins": [
				"atma-loader-postcss"
			],
			"settings": {
				"atma-loader-postcss": {
					"extension": "css",
                    "plugins": ['autoprefixer']
				}
			}
		}
	}
	```
+ 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-postcss`
+ add `test.html` to the directory

    ```html
    <!DOCTYPE html>
    <link href='test.css' rel='stylesheet' />
    ```
+ add `test.postcss`
    
    ```css
    div { display: flex; }
    ```
+ 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-postmask · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
