gulp-ws-sender

1.2.1 • Public • Published

For live injection of your script and styles to any page. Use with chrome extention

Usage

const gulp = require('gulp')
const port = 9999
const sender = require('gulp-ws-sender')(port)
 
gulp.task('style', () => {
  return gulp.src('src/**/*.css')
    // your pipes
    .pipe(sender({ type: 'css' }))
    .pipe(gulp.dest('build'))
})
 
gulp.task('script', () => {
  return gulp.src('src/**/*.js')
    // your pipes
    .pipe(sender({ type: 'js' }))
    .pipe(gulp.dest('build'))
})

Readme

Keywords

none

Package Sidebar

Install

npm i gulp-ws-sender

Weekly Downloads

0

Version

1.2.1

License

ISC

Unpacked Size

3.93 kB

Total Files

7

Last publish

Collaborators

  • rozov1