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

px2rem-loader

a webpack loader for px2rem

NPM version Build status Downloads

Install

npm install px2rem-loader

webpack config

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

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

Current Tags

  • 0.1.9                                ...           latest (2 years ago)

10 Versions

  • 0.1.9                                ...           2 years ago
  • 0.1.8                                ...           2 years ago
  • 0.1.7                                ...           4 years ago
  • 0.1.6                                ...           4 years ago
  • 0.1.5                                ...           5 years ago
  • 0.1.4                                ...           5 years ago
  • 0.1.3                                ...           5 years ago
  • 0.1.2                                ...           5 years ago
  • 0.1.1                                ...           5 years ago
  • 0.1.0                                ...           5 years ago
Maintainers (2)
Downloads
Today 12
This Week 3,049
This Month 4,796
Last Day 163
Last Week 2,742
Last Month 12,068
Dependencies (2)
Dev Dependencies (2)
Dependents (192)

Copyright 2014 - 2017 © taobao.org |