# px2rem-loader

> css post loader for px2rem

Latest version **0.1.9** (published 2018-04-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install px2rem-loader
pnpm add px2rem-loader
yarn add px2rem-loader
bun add px2rem-loader
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.9 |
| Published | 2018-04-01 |
| First published | 2015-06-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 204 |
| Author | Jinjiang |
| Maintainers | jinjiang, songsiqi |
| Keywords | webpack, loader |

## Links

- npm: https://www.npmjs.com/package/px2rem-loader
- Repository: https://github.com/Jinjiang/px2rem-loader
- Issues: https://github.com/Jinjiang/px2rem-loader/issues
- npm.io page: https://npm.io/package/px2rem-loader

## Dependencies (2)

- [px2rem](https://npm.io/package/px2rem.md) ^0.5.0
- [loader-utils](https://npm.io/package/loader-utils.md) ^1.1.0

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 0.1.9 (latest) — 2018-04-01
- 0.1.8 — 2018-03-21
- 0.1.7 — 2016-05-11
- 0.1.6 — 2016-01-21
- 0.1.5 — 2015-09-05
- 0.1.4 — 2015-06-25
- 0.1.3 — 2015-06-25
- 0.1.2 — 2015-06-22
- 0.1.1 — 2015-06-19
- 0.1.0 — 2015-06-19

## README

# px2rem-loader

a [webpack](http://webpack.github.io/) loader for [px2rem](https://github.com/songsiqi/px2rem)

[![NPM version][npm-image]][npm-url]
[![Build status][travis-image]][travis-url]
[![Downloads][downloads-image]][downloads-url]

[npm-image]: https://img.shields.io/npm/v/px2rem-loader.svg
[npm-url]: https://npmjs.org/package/px2rem-loader
[travis-image]: https://img.shields.io/travis/Jinjiang/px2rem-loader.svg
[travis-url]: https://travis-ci.org/Jinjiang/px2rem-loader
[downloads-image]: http://img.shields.io/npm/dm/px2rem-loader.svg
[downloads-url]: https://npmjs.org/package/px2rem-loader

## Install

`npm install px2rem-loader`

## webpack config

```
module.exports = {
  // ...
  module: {
    rules: [{
      test: /\.css$/,
      use: [{
        loader: 'style-loader'
      }, {
        loader: 'css-loader'
      }, {
        loader: 'px2rem-loader',
        // options here
        options: {
          remUni: 75,
          remPrecision: 8
        }
      }]
    }]
  }
}
```

Please see [px2rem](https://github.com/songsiqi/px2rem) for more information about query parameters of px2rem.

---
_Source: https://npm.io/package/px2rem-loader · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
