Skip to content
This repository has been archived by the owner on Feb 20, 2020. It is now read-only.

aaronkirkham/gulp-jspre

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published