Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function print_error (error) {
- console.error('Plugin:', error.plugin);
- console.error('ID:', error.id);
- console.error(error.stack);
- console.error(error.snippet);
- }
- // Example Usage
- gulp.task('build-js', function () {
- return gulp.src("static/nac/**/*.js")
- .pipe(
- rollup({
- format: "iife",
- plugins: [buble()],
- entry: './static/nac/nac.js',
- })
- .on('error', print_error)
- )
- .pipe(gulp.dest("static/dist"));
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement