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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to use in gulp 4.0 #41

Open
yueveron opened this issue Jan 9, 2019 · 2 comments
Open

how to use in gulp 4.0 #41

yueveron opened this issue Jan 9, 2019 · 2 comments

Comments

@yueveron
Copy link

yueveron commented Jan 9, 2019

i can't run it in gulp 4.0. Why, please teach me!

@hicom150
Copy link

I'm using gulp-requirejs with gulp@4.0.0 successfully with something like this 😁

gulp.task('requirejs', function () {
    var requirejsOptions = {
        baseUrl: 'base',
        mainConfigFile: 'mainConfig.js',
        out: 'out.js',
        optimize: 'uglify'
    };

    return requirejs(requirejsOptions)
        .on('error', function (error) {
            console.log(error);
        })
        .pipe(gulp.dest('../build'));
});

@eemeli
Copy link
Contributor

eemeli commented Jul 17, 2020

See #53 for the reason this is failing.

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

3 participants