@megalo/px2rpx-loader

0.1.1 • Public • Published

px2rpx-loader

a webpack loader for px2rpx

NPM version Build status Downloads

Install

npm install px2rpx-loader

webpack config

module.exports = {
  // ...
  module: {
    rules: [{
      test: /\.css$/,
      use: [{
        loader: 'style-loader'
      }, {
        loader: 'css-loader'
      }, {
        loader: 'px2rpx-loader',
        // options here
        options: {
          rpxUnit: 75,
          rpxPrecision: 8
        }
      }]
    }]
  }
}

Please see px2rpx for more information about query parameters of px2rpx.

Readme

Keywords

Package Sidebar

Install

npm i @megalo/px2rpx-loader

Weekly Downloads

0

Version

0.1.1

License

MIT

Unpacked Size

3.32 kB

Total Files

6

Last publish

Collaborators

  • dequan
  • elcarim5efil
  • fengzilong
  • zwwill
  • iuiaoin
  • zhuping.zp
  • xsasadasdasdasd
  • shenbin
  • llwanghong
  • bigdogaaa