npm

gulp-bem-bundler-fs

0.0.10 • Public • Published

gulp-bem-bundler-fs

NPM Status Travis Status Coverage Status

Install

$ npm install --save-dev gulp-bem-bundler-fs

Usage

const bundler = require('gulp-bem-bundler-fs');
const Builder = require('gulp-bem-bundle-builder');
 
const concat = require('gulp-concat');
const stylus = require('gulp-stylus');
const postcss = require('gulp-postcss');
const autoprefixer = require('autoprefixer');
const postcssUrl = require('postcss-url');
 
// Configuring builder
const builder = Builder();
 
bundler('*.bundles/*')
    .pipe(builder({
        css: bundle => bundle.src('css')
            .pipe(stylus())
            .pipe(postcss([
                autoprefixer({
                    browsers: ['ie >= 10', 'last 2 versions', 'opera 12.1', '> 2%']
                }),
                postcssUrl({ url: 'inline' })
            ]))
            .pipe(csso())
            .pipe(concat(`${bundle.name}.css`))
    }));

Readme

Keywords

Package Sidebar

Install

npm i gulp-bem-bundler-fs

Weekly Downloads

11

Version

0.0.10

License

MIT

Last publish

Collaborators

  • blond
  • qfox
  • skad0