Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct way to integrate Babel into Gulp script #16

Open
jmashore opened this issue May 11, 2021 · 1 comment
Open

Correct way to integrate Babel into Gulp script #16

jmashore opened this issue May 11, 2021 · 1 comment

Comments

@jmashore
Copy link

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'))
});
@zoltanszogyenyi
Copy link
Member

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants