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

lost path. after templatecache #69

Closed
pruge opened this issue Jan 29, 2015 · 0 comments
Closed

lost path. after templatecache #69

pruge opened this issue Jan 29, 2015 · 0 comments

Comments

@pruge
Copy link

pruge commented Jan 29, 2015

I try to create multiple template.js, but it lost dirname.

Can preserve dirname?

gulp.src( ['test/a//**/*.html','test/b/**/*.html' , {base: '.test' })
        .pipe(rename(function (path) {
            console.log(path);
            // print
            // { dirname: 'a', basename: 'hello', extname: '.html' }
            // { dirname: 'b', basename: 'hello', extname: '.html' }
        }))
        .pipe(templateCache({
            standalone: true
        }))
        .pipe(rename(function (path) {
            console.log(path);
            // print, lost 'dirname'
            // { dirname: '.', basename: 'templates', extname: '.js' }
        }))
        .pipe(gulp.dest(config.views.dest));
@pruge pruge closed this as completed Feb 28, 2015
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