🚀 DAY 4 OF LAUNCH WEEK:Introducing Socket Scanning for OpenVSX Extensions.Learn more →
Socket
Book a DemoInstallSign in
Socket

@megalo/px2rpx-loader

Package Overview
Dependencies
Maintainers
3
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@megalo/px2rpx-loader

css post loader for px2rpx

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
3
Created
Source

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: 75,
          rpxPrecision: 8
        }
      }]
    }]
  }
}

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

Keywords

webpack

FAQs

Package last updated on 03 Dec 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts