Skip to content

benpptung/transforms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 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",
    ]
  },

Releases

No releases published

Packages

No packages published