@soulsandz/px2remplus-loader

1.0.1 • Public • Published

px2remplus-loader

same as px2rem-loader

Install

npm i @soulsandz/px2remplus-loader -D

webpack config

module.exports = {
  // ...
  module: {
    rules: [{
      test: /\.css$/,
      use: [{
        loader: 'style-loader'
      }, {
        loader: 'css-loader'
      }, {
        loader: 'px2rem-loader',
        // options here
        options: {
          remUnit: 75,
          ignoreSelector: 'cube'  // the selector will be ignore if it contains the string
        }
      }]
    }]
  }
}

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

Readme

Keywords

Package Sidebar

Install

npm i @soulsandz/px2remplus-loader

Weekly Downloads

3

Version

1.0.1

License

MIT

Unpacked Size

5.89 kB

Total Files

7

Last publish

Collaborators

  • soulsandz