Skip to content

tamascsaba/sassportify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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, {
      modules: [
        // These modules will be passed to SassPort
        require('sassport-foo'),
        require('sassport-bar')
      ],
      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
        }
      },
    })
    .bundle()

#Development

  1. Clone the repo
  2. npm install
  3. npm run dev

This project uses TypeScript to transpile to ES5.

License

MIT

About

sassport browserify transform

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published