# cssnext-loader

> webpack loader for cssnext

Latest version **1.0.1** (published 2015-02-13) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

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

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2015-02-13 |
| First published | 2014-11-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 43 |
| Author | bloodyowl |
| Maintainers | bloodyowl, moox |
| Keywords | webpack, cssnext, css, loader |

## Links

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

## Dependencies (3)

- [cssnext](https://npm.io/package/cssnext.md) ^1.0.0
- [loader-utils](https://npm.io/package/loader-utils.md) ^0.2.5
- [object-assign](https://npm.io/package/object-assign.md) ^2.0.0

## Alternatives

- [style-dictionary](https://npm.io/package/style-dictionary.md) — 2.0M weekly downloads
- [postcss-merge-idents](https://npm.io/package/postcss-merge-idents.md) — 1.7M weekly downloads
- [@fontsource/noto-sans](https://npm.io/package/@fontsource/noto-sans.md) — 93.0K weekly downloads
- [uglifycss](https://npm.io/package/uglifycss.md) — 71.6K weekly downloads
- [mat4-interpolate](https://npm.io/package/mat4-interpolate.md) — 23.3K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2015-02-13
- 1.0.0 — 2015-02-06
- 0.2.0 — 2014-12-24
- 0.1.1 — 2014-12-02
- 0.1.0 — 2014-11-28

## README

# cssnext-loader [![Build Status](http://img.shields.io/travis/cssnext/cssnext-loader.svg)](https://travis-ci.org/cssnext/cssnext-loader)

> a webpack loader for cssnext

## install

```console
$ npm install cssnext-loader
```

## api

### cssnext

in your `webpack.config.js`

```javascript
module.exports = {
  entry: "path/to/entry",
  output: {
    path: "path/to/output/",
    filename: "bundle.js"
  },
  cssnext : {
    features : {
      import : {
        path : ["src/assets/stylesheets"]
      }
    }
  }
}
```

in your js file :

```javascript
var css = require("style-loader!css-loader!../..!./file.css")
```

you can also configure webpack so that it always parses CSS files like this :

```javascript
module: {
  loaders: [
    {
      test:   /\.css$/,
      loader: "style-loader!css-loader!cssnext-loader"
    }
  ]
}
```

## [changelog](CHANGELOG.md)

## [license](LICENSE)

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