Skip to content

msaktype/postcss-annotation-constant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

postcss-annotation-constant Build Status

PostCSS plugin for the annotation based binding rule set

Installation

$ npm install postcss-annotation-constant

Example

// dependencies
var fs = require("fs")
var postcss = require("postcss")
var constant = require("postcss-annotation-constant")

// css to be processed
var css = fs.readFileSync("input.css", "utf8")

// process css
var output = postcss()
  .use(constant(css))
  .process(css)
  .css

Using this input.css:

.class {
  /*
   * @constant
   */
  padding: 20px;
}

.class {
  padding: 0;
}

Run error: Cannot cascade .class

License

The MIT License (MIT)

Copyright (c) 2014 Masaaki Morishita

About

PostCSS plugin for the annotation based binding rule set

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors