Skip to content

megalojs/megalo-px2rpx-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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: 1,
          rpxPrecision: 6
        }
      }]
    }]
  }
}

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published