Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

combine-css-imports

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

combine-css-imports

Combines css imports from external files to create polymer style modules

  • 1.0.2
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

combine-css-imports

Gulp plugin which generate Polymer Syle modules form files containing css imports.

Basically it converts a file with external stylesheets imports into an polymer style module.

installation

npm install --save-dev combine-css-imports

Example


var stylemod     = require('gulp-style-modules');
var gulp         = require('gulp');
var combine      = require('combine-css-imports');
var path         = require('path');

gulp.task("default", function() {
  gulp.src("./**/*.cssimports" ,{base: './'})
      .pipe(combine())
      .pipe(stylemod({
        filename: function(file) {
          return path.basename(file.path, '.cssimports');;
        },
        moduleId: function(file) {
          return path.basename(file.path, '.cssimports');;
        }
      }))
      .pipe(gulp.dest('./'));
})

Keywords

FAQs

Package last updated on 26 May 2016

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc