neumorphism-ui-bootstrap icon indicating copy to clipboard operation
neumorphism-ui-bootstrap copied to clipboard

Correct way to integrate Babel into Gulp script

Open jmashore opened this issue 3 years ago • 1 comments

I'm trying to integrate Babel into my Gulp Script and can't quite seem to get it figured out. Can someone please let me know the correct config for both development and build. This is what I have now 👍

gulp.task('scripts', function() {
    return gulp.src(
        [
            './node_modules/babel-polyfill/dist/polyfill.js',
            'js/*.js'
        ])
        .pipe(babel({
            presets: ['@babel/preset-env']
        }))
        .pipe(gulp.dest('compiled'))
});

jmashore avatar May 11 '21 14:05 jmashore

Hey @jmashore,

Sorry for the belated reply, my notifications were messed up.

I'm not very familiar with Babel, but have you figured it out by now? If not, I'll try to look into it provide an answer!

zoltanszogyenyi avatar May 28 '21 15:05 zoltanszogyenyi