New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@typenetwork/compass-importer

Package Overview
Dependencies
Maintainers
2
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@typenetwork/compass-importer

a node-sass importer for compass

latest
Source
npmnpm
Version
0.4.2
Version published
Maintainers
2
Created
Source

Build Status

compass-importer

this is a fork updated to work with @typenetwork/compass-mixins

A node-sass importer for compass. This package will download an up to date compass-mixin and link all declarations of @import 'compass' to the mixins. The Compass will also automagically update the compass-mixin from Github. The result is all the power of compass with the speed of libsass.

Install

$ npm install --save-dev compass-importer

Usage

You can use this importer in node-sass or any project that depends on node-sass. the only thing you need to do to make this work is add the importer to the options and include the '.compass' folder.

node-sass

var sass = require('node-sass');
var compass = require('compass-importer')

sass.render({
  data: '@import "compass"; .transition { @include transition(all); }',
  importer: compass
});

grunt-sass

var compass = require('compass-importer')


grunt.initConfig({
    
    sass:{
       
        options: {
            importer: compass
        },
        ...        
    }

})

gulp-sass

var gulp = require('gulp')
var sass = require('gulp-sass')
var compass = require('compass-importer')


gulp.task('sass', function()
{
    return gulp.src('sass/**/*.scss')
      .pipe(sass({ importer: compass }).on('error', sass.logError))
      .pipe(gulp.dest('./css'));

});

License

MIT

Keywords

sass

FAQs

Package last updated on 08 Apr 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts