https://github.com/moox/cssnextify
# DEPRECATED. Use browserify-postcss instead.
https://github.com/moox/cssnextify
Last synced: about 1 year ago
JSON representation
# DEPRECATED. Use browserify-postcss instead.
- Host: GitHub
- URL: https://github.com/moox/cssnextify
- Owner: MoOx
- License: mit
- Created: 2015-06-11T12:56:47.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2016-01-04T07:37:40.000Z (over 10 years ago)
- Last Synced: 2025-03-22T10:37:47.942Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 7.81 KB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# DEPRECATED. Use browserify-postcss instead.
---
# cssnextify [](https://travis-ci.org/cssnext/cssnextify)
A Browserify transform for css & [cssnext](http://cssnext.io).
## Installation
This package is available as NPM package.
### NPM
```
$ npm install cssnextify --save
```
## Usage
Require your css files from script:
```javascript
// main.js
require('./style.css')
```
### CLI
```
$ browserify -t cssnextify main.js > bundle.js
```
### Code
```javascript
var fs = require('fs')
var browserify = require('browserify')
var cssnextify = require('cssnextify')
var bundler = browserify()
bundler.add(__dirname + '/main.js')
bundler.transform(cssnextify)
bundler.bundle().pipe(fs.createWriteStream(__dirname + '/bundle.js'))
```