atma-loader-postmask
v1.0.17
Published
Mask optimizers for `atma-io`, `IncludeJS` and `atma-server`.
Readme
PostCSS Compiler (Atma Plugin)
The Plugin extends:
IncludeJSwith a custom loaderatma-iowith a custom middleware to read PostCSS filesatma-serverandAtma Toolkitwith aHTTPHandlerto serve compiled sources (with sourceMap support)
How to use
Embed into the Project
atma plugin install atma-loader-postcssThis adds
atma-loader-postcssnpm dependency and thepackage.jsonwould look like:{ "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 -ginstall plugin:
$ atma plugin install atma-loader-postcssadd
test.htmlto the directory<!DOCTYPE html> <link href='test.css' rel='stylesheet' />add
test.postcssdiv { display: flex; }start the server:
$ atma serveropen the browser:
http://localhost:5777/test.html
(c) MIT License - Atma.js Project

