You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gaoshuguang 8d06bc0501 首次提交 2 years ago
..
lib 首次提交 2 years ago
.travis.yml 首次提交 2 years ago
README.md 首次提交 2 years ago
index.js 首次提交 2 years ago
package.json 首次提交 2 years ago
test.js 首次提交 2 years ago

README.md

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.