0.0.10 • Published 6 years ago

gulp-bem-bundler-fs v0.0.10

Weekly downloads
11
License
MIT
Repository
github
Last release
6 years ago

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`))
    }));
0.0.10

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago