Skip to content

qingyangmoke/rpx2rem-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rpx2rem-loader

a webpack loader for rpx2rem

NPM version Build status Downloads

Install

npm install rpx2rem-loader

webpack config

module.exports = {
  // ...
  module: {
    rules: [{
      test: /\.css$/,
      use: [{
        loader: 'style-loader'
      }, {
        loader: 'css-loader'
      }, {
        loader: 'rpx2rem-loader',
        // options here
        options: {
          remUnit: 100,
          remTag: 'rem',
          remPrecision: 6,
        }
      }]
    }]
  }
}

thanks

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

About

rpx to rem webpack loader

Resources

Stars

Watchers

Forks

Packages

No packages published