themesberg / neumorphism-ui-bootstrap

Neumorphism inspired UI Kit: web components, sections and pages in neumorphic style built with Bootstrap CSS Framework
https://themesberg.com/docs/neumorphism-ui/getting-started/quick-start/
MIT License
843 stars 130 forks source link

Correct way to integrate Babel into Gulp script #16

Open jmashore opened 3 years ago

jmashore commented 3 years ago

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 commented 3 years ago

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!