@bemtools/gulp-bundle-js

1.0.0 • Public • Published

NPM version Build Status

Create bundle JS file with import blocks

Installation

npm install @bemtools/gulp-bundle-js @bemtools/gulp-extract-html-class --save

Sample gulpfile.js

This file will give you a taste of what plugin does.

const gulp         = require('gulp');
const extractClass = require('@bemtools/gulp-extract-html-class');
const bundleJS     = require('@bemtools/gulp-bundle-js');

gulp.task('bundle:js', () => {
	gulp.src('./src/html/**/*.html')
		.pipe(extractClass())
		.pipe(bundleJS())
		.pipe(gulp.dest('./src/bundles'))
});

Package Sidebar

Install

npm i @bemtools/gulp-bundle-js

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

7.7 kB

Total Files

14

Last publish

Collaborators

  • yury.kopyl