sassportify
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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

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

This project uses TypeScript to transpile to ES5.

License

MIT

Package Sidebar

Install

npm i sassportify

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • tamascsaba