Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. function print_error (error) {
  2. console.error('Plugin:', error.plugin);
  3. console.error('ID:', error.id);
  4. console.error(error.stack);
  5. console.error(error.snippet);
  6. }
  7.  
  8. // Example Usage
  9. gulp.task('build-js', function () {
  10. return gulp.src("static/nac/**/*.js")
  11. .pipe(
  12. rollup({
  13. format: "iife",
  14. plugins: [buble()],
  15. entry: './static/nac/nac.js',
  16. })
  17. .on('error', print_error)
  18. )
  19. .pipe(gulp.dest("static/dist"));
  20. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement