1.0.6 • Published 6 years ago

postcss-wxss v1.0.6

Weekly downloads
21
License
MIT
Repository
github
Last release
6 years ago

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