An open API service indexing awesome lists of open source software.

https://github.com/benpptung/transforms

browserify transformer for css, scss, less, style and react
https://github.com/benpptung/transforms

browserify browserify-transform css es6 es6-javascript lesscss react scss

Last synced: 7 months ago
JSON representation

browserify transformer for css, scss, less, style and react

Awesome Lists containing this project

README

          

# transforms

An All-in-one personal browserify transformer for `js`, `css`, `scss`, `less`, `styl`....

So, we can:

### transpile javascript

use `babelify` internally.

### compile scss,less,styl and transform to css

so we can write something like this

```
const css = require('./site.scss');
```

and use [inject-css](https://www.npmjs.com/package/inject-css) to insert the css

```
const inject = require('inject-css');
const delcss = inject(css);
```

and delete the css if we want to change theme or something like that
```
delcss();
```

## Usage

Under the project directory,

> npm install transforms -S

In the package.json, add the following:

```
"browserify": {
"transform": [
"transforms",
]
},
```