Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

px2rem-loader

0.1.9 • Public • Published

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.

Install

npm i px2rem-loader

DownloadsWeekly Downloads

2,550

Version

0.1.9

License

MIT

Unpacked Size

5.14 kB

Total Files

6

Last publish

Collaborators

  • avatar
  • avatar