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

*.js files out of the root directory cannot be compiled #180

Open
darrenzo opened this issue Feb 19, 2019 · 0 comments
Open

*.js files out of the root directory cannot be compiled #180

darrenzo opened this issue Feb 19, 2019 · 0 comments

Comments

@darrenzo
Copy link

gulpfile.js and other files are put in “tools” directory. Now I compile *.js under “builds” directory that is the same level as “tools” directory, but the compilation does not work.

// tools/gulpfile.js

// doesn't work
gulp.task('test', function () {
    gulp.src("../builds/*.js")
        .pipe(babel())
        .pipe(gulp.dest('../builds'));
})

// work
gulp.task('test', function () {
    gulp.src("./*.js")
        .pipe(babel())
        .pipe(gulp.dest('./'));
})
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

1 participant