0.1.5 • Published 7 years ago

css-into-js v0.1.5

Weekly downloads
3
License
ISC
Repository
github
Last release
7 years ago

css-into-js

Package CSS alongside the JS code in the generated bundle (be able to provide a single .js bundle file to distribute your module).

Usage example:

var cssIntoJs = require('css-into-js');

gulp.task('style', function() {
  return gulp.src(['./src/style/index.scss'])
        .pipe(sourcemaps.init())
        .pipe(sass({
          outputStyle: 'compressed'
        }))
        .pipe(cssIntoJs())
        .pipe(sourcemaps.write())
        .pipe(rename('bundle.style.js'))
        .pipe(gulp.dest('./tmp'));
});
0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago