S
S
Sector5672019-11-23 19:24:03
gulp.js
Sector567, 2019-11-23 19:24:03

How to set up gulp and babel-cli?

https://www.npmjs.com/package/babel-cli


Usage
babel script.js

What does it mean?
I read here https://babeljs.io/docs/en/babel-cli/#compile-files , but I can't understand anything either.
How to make it in gulpfile.js so that from one directory the code is converted from ES6 to ES5 to another directory, which can later be connected to the same html?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roma Zvarich, 2019-11-23
@Sector567

The plugin at the link you provided does not apply to Gulp.
Babel plugin for Gulp is here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question