postcss-wxss

1.0.6 • Public • Published

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';
  }
}
 
#mainwx-icon {
  border: %%?1rpx?%% solid black;
}
 
ul li.pagebody {
  padding: %%?5rpx?%% %%?3rpx?%%;
}

Usage

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

See PostCSS docs for examples for your environment.

Reference

writing-a-plugin

License

MIT

Package Sidebar

Install

npm i postcss-wxss

Weekly Downloads

22

Version

1.0.6

License

MIT

Last publish

Collaborators

  • oriens