Skip to content

Error in definition gulpfile.js #146

Open
@codabat

Description

Hi @fedosejev
I believe there is an error in the definition of gulpfile.js.
The file I believe the correct definition is:

It's probably all wrong:
it must be like this if we want it to render also with the syntax of jsx:

const gulp = require ('gulp');
const browserify = require ('browserify');
const reactify = require ('reactify');
const babelify = require ('babelify')
const source = require ('vinyl-source-stream');

gulp.task ('default', function () {
return browserify ('./ source / app.jsx')
.transform (reactify)
.transform (babelify)
.bundle ()
.pipe (source ( 'snapterest.js'))
.pipe (gulp.dest ( './ build /'))

})

Missing addition of .transform (babelify), after transform (reactify).

What do you think about it?

Thank you so much

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions