UNPKG

2.87 kBMarkdownView Raw
1# postcss-cssnext
2
3[![NPM version](http://img.shields.io/npm/v/postcss-cssnext.svg?style=flat)](https://www.npmjs.org/package/postcss-cssnext)
4[![Travis Build Status](https://img.shields.io/travis/cssnext/postcss-cssnext.svg?label=unix%20build)](https://travis-ci.org/cssnext/postcss-cssnext)
5[![AppVeyor Build Status](https://img.shields.io/appveyor/ci/MoOx/postcss-cssnext.svg?label=windows%20build)](https://ci.appveyor.com/project/MoOx/postcss-cssnext)
6[![Join the chat at https://gitter.im/cssnext/cssnext](https://img.shields.io/badge/gitter%20-join%20chat%20%E2%9E%9E-1dce73.svg)](https://gitter.im/cssnext/cssnext)
7
8
9> Use tomorrow's CSS syntax, today.
10
11cssnext is a CSS transpiler that allows you to use the latest CSS syntax today.
12It transforms CSS specs into more compatible CSS so you don’t need to wait for browser support.
13
14---
15
16# This repository contains the PostCSS plugin.
17
18## Why **postcss-cssnext** ? What is the difference with **cssnext** ?
19
20cssnext was at first designed to be a complete tool, before PostCSS became
21popular; thus, includes some options that don't really belong in a PostCSS
22plugin (e.g., `import`, `url`, `compress`, `plugins`).
23These days, most people use PostCSS directly so we decided to make integration of
24cssnext more simple by providing a simple (real) plugin.
25
26If you were using cssnext with some options here is what you need to know:
27
28- `import`: just add into your plugins list
29 [`postcss-import`](https://github.com/postcss/postcss-import)
30- `url`: just add into your plugins list
31 [`postcss-url`](https://github.com/postcss/postcss-url)
32- `compress`: just add into your plugins list
33 [`cssnano`](https://github.com/ben-eb/cssnano)
34- `plugins`: just add the plugins directly in your list
35- `messages`: see
36 [`postcss-reporter`](https://github.com/postcss/postcss-reporter)
37 and
38 [`postcss-browser-reporter`](https://github.com/postcss/postcss-browser-reporter)
39- `sourcemap`, `map`, `to`, `from`: see
40 [PostCSS source map documentation](https://github.com/postcss/postcss#source-map)
41
42
43## But I like cssnext as it was !
44
45_Don't worry. That's why we created another package._
46The **cssnext** package will have a major release soon in order to introduce a
47minor but breaking changes in the Node.js API, but you will get the same tool as
48before.
49The nice thing is: **cssnext** will use **postcss-cssnext** under the hood.
50
51---
52
53## Check out [cssnext website](http://cssnext.io/)
54
55- [Features](http://cssnext.io/features/)
56- [Setup](http://cssnext.io/setup/)
57- [Usage](http://cssnext.io/usage/)
58- [Playground](http://cssnext.io/playground/)
59
60For questions and support please visit the
61[gitter room](https://gitter.im/cssnext/cssnext).
62
63---
64
65_The [issue tracker](https://github.com/cssnext/cssnext/issues) is exclusively for bug reports and feature requests._
66
67---
68
69## [Changelog](CHANGELOG.md)
70
71## [License](LICENSE)