Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

postcss-wxss

IOriens127MIT1.0.6

PostCSS plugin to transpile wxss or acss.

postcss, css, postcss-plugin, wxss, acss

readme

PostCSS Wxss Build Status

PostCSS plugin to transpile wxss or acss..

@media screen and (min-width: 480rpx) {
  body {
    background-color: lightgreen;
    animation-name: 'kkk';
  }
}

#main, icon {
  border: 1rpx solid black;
}

ul li, .page, page {
  padding: 5rpx 3rpx;
}
@media screen and (min-width: 480rpx) {
  body {
    background-color: lightgreen;
    animation-name: 'kkk';
  }
}

#main, wx-icon {
  border: %%?1rpx?%% solid black;
}

ul li, .page, body {
  padding: %%?5rpx?%% %%?3rpx?%%;
}

Usage

postcss([ require('postcss-wxss') ])

See PostCSS docs for examples for your environment.

Reference

writing-a-plugin

License

MIT

changelog

Change Log

This project adheres to Semantic Versioning.

0.0.3

support more number type before rpx