gulp-jspre

1.0.1 • Public • Published

gulp-jspre

A JavaScript preprocessor for gulp to import local and remote scripts without using a bundler.

Gulp Usage

const jspre = require('gulp-jspre');

gulp.task('js', () => {
  return gulp.src('entrypoint.js')
    .pipe(jspre())
    .pipe(gulp.dest('./dist/'));
});

entrypoint.js

(function() {
  console.log('this is my javascript file!');
})();

// import from another file on disk
// @jspre "another-file.js"

// import from a file on the web
// @jspre "http://code.jquery.com/jquery-3.3.1.js"

/gulp-jspre/

    Package Sidebar

    Install

    npm i gulp-jspre

    Weekly Downloads

    3

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    278 kB

    Total Files

    11

    Last publish

    Collaborators

    • aaronlad