gulp-css-to-js

0.0.2 • Public • Published

gulp-css-to-js NPM version

gulp plugin which convert css-file to js-file which makes style tag

Install with npm

npm install gulp-css-to-js

Usage

var cssToJs = require('gulp-css-to-js');
 
var scriptStream = gulp.src('src/**/*.js');
    
var styleStream = gulp.src('src/**/*.css')
    .pipe(cssToJs());
    
merge(scriptStream, styleStream)
    .pipe(concat('script.js'))
//the script.js will insert styles in DOM by running document.createElement('style')

License

Copyright (c) 2014-2015 Oleg Istomin Released under the MIT license


Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i gulp-css-to-js

    Weekly Downloads

    15

    Version

    0.0.2

    License

    MIT

    Last publish

    Collaborators

    • tamtakoe