Skip to content

tenbits/atma-loader-postcss

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PostCSS Compiler (Atma Plugin)

Build Status

The Plugin extends:

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:

     {
     	"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

    <!DOCTYPE html>
    <link href='test.css' rel='stylesheet' />
  • add test.postcss

    div { display: flex; }
  • start the server: $ atma server

  • open the browser: http://localhost:5777/test.html


(c) MIT License - Atma.js Project

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published