@megalo/px2rpx-loader
css post loader for px2rpx
Last updated 2 years ago by zwwill .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @megalo/px2rpx-loader 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 0.1.1                                ...           latest (2 years ago)

1 Versions

  • 0.1.1                                ...           2 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 2
Last Month 9
Dependencies (2)
Dev Dependencies (2)
Dependents (1)

Copyright 2014 - 2017 © taobao.org |