sassportify
v1.0.0
Published
sassport transform for browserify
Downloads
1
Maintainers
Readme
sassportify
Sassport transform for browserify.
Install sassportify:
$ npm i sassportify --save-dev
Setup
The default settings are listed below. They may be overridden though the CLI, package.json or though the API options.
In order for PostCSS plugins to be used, they must be installed in your projects package.json
var browserify = require('browserify');
var sassportify = require('sassportify');
browserify('entry.js')
.transform(sassportify, {
sass: {
sourceComments: false,
sourceMap: false,
sourceMapEmbed: false,
sourceMapContents: false,
outputStyle: 'compressed'
},
//you may specify what postcss plugins to use here
postcss: {
autoprefixer: {
browsers: ['last 2 versions'] //optional config, use an empty object for defualts
}
}
,
rootDir: process.cwd()
})
.bundle()
#Development
- Clone the repo
npm install
npm run dev
This project uses TypeScript to transpile to ES5.