Need Private Modules

    @megalo/px2rpx-loader

    0.1.1 • Public • Published

    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.

    Install

    npm i @megalo/px2rpx-loader

    DownloadsWeekly Downloads

    1

    Version

    0.1.1

    License

    MIT

    Unpacked Size

    3.32 kB

    Total Files

    6

    Last publish

    Collaborators

    • dequan
    • elcarim5efil
    • fengzilong
    • zwwill
    • iuiaoin
    • zhuping.zp
    • xsasadasdasdasd
    • shenbin
    • llwanghong
    • bigdogaaa