postcss-bootstrap-wxss

PostCSS plugin for convert bootstrap css file to wxss

Usage no npm install needed!

<script type="module">
  import postcssBootstrapWxss from 'https://cdn.skypack.dev/postcss-bootstrap-wxss';
</script>

README

PostCSS bootstrap Wxss

[PostCSS] plugin for wxss.

在postcss-mpvue-wxss基础上加入针对 bootstrap4的一些适配。

备注

需要和postcss-mpvue-wxss一起使用

用法

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

在Webpack中使用

  module.exports = {
    plugins: [
      require('autoprefixer')({
                                 remToRpx: 35  // 这个参数可以用来调整转换rem单位到rpx单位时使用的比例
                              })
    ]
  }

参考wepy-plugin-bootstrap 以及 wepy-bootstrap-demo