# prejss-styles-loader

> Webpack styles loader for prejss

Latest version **1.0.0** (published 2017-05-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install prejss-styles-loader
pnpm add prejss-styles-loader
yarn add prejss-styles-loader
bun add prejss-styles-loader
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2017-05-03 |
| First published | 2017-03-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | lttb |
| Maintainers | lttb |

## Links

- npm: https://www.npmjs.com/package/prejss-styles-loader
- Repository: https://github.com/lttb/prejss-styles-loader
- Homepage: https://github.com/lttb/prejss-styles-loader#readme
- Issues: https://github.com/lttb/prejss-styles-loader/issues
- npm.io page: https://npm.io/package/prejss-styles-loader

## Dependencies (1)

- [prejss-postcss-parser](https://npm.io/package/prejss-postcss-parser.md) ^0.3.2

## Recent versions

- 1.0.0 (latest) — 2017-05-03
- 0.0.1 — 2017-03-11

## README

# prejss-styles-loader

Styles loader for Webpack on top of [PreJSS](https://github.com/axept/prejss).

Process stylesheets from separate files via PostCSS to the JSS-like objects.

## Installation

```sh
npm i -D prejss-styles-loader
```
or
```sh
yarn add -D prejss-styles-loader
```

## Usage example

```js
import injectSheet from 'react-jss'

// this style would become to JSS object literal
import style from './style.sss'

const App = () => // ...

// ...

export default injectSheet(style)(App)
```

*styles.sss*
```stylus
.app
  position: absolute
  top: 0
  left: 0
```

### Webpack config example

```js
rules: [{
  test: /\.s[ac]?ss$/,
  include: [
    PATHS.app,
  ],
  use: [
    'prejss-styles-loader',
  ],
}]
```

## Links
- [PreJSS](https://github.com/axept/prejss)


## License
MIT

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