Socket
Socket
Sign inDemoInstall

rpx2rem-loader

Package Overview
Dependencies
39
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    rpx2rem-loader

webpack loader for rpx2rem


Version published
Maintainers
1
Created

Readme

Source

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.

Keywords

FAQs

Last updated on 07 Aug 2020

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc