🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
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
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
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

Polymer

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