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

extension option #48

Closed
bierdok opened this issue Nov 5, 2014 · 5 comments
Closed

extension option #48

bierdok opened this issue Nov 5, 2014 · 5 comments

Comments

@bierdok
Copy link

bierdok commented Nov 5, 2014

boolean (default true)

do not write ".html" extension everywhere could be nice.

@miickel
Copy link
Owner

miickel commented Nov 5, 2014

We don't add .html, but use the name of your files to build the url... so just rename the files without the extension before piping to this plugin if you want anything different. gulp-rename comes to mind

@miickel miickel closed this as completed Nov 5, 2014
@bierdok
Copy link
Author

bierdok commented Nov 5, 2014

in fact, i already use gulp-rename

gulp.task('app:templates', function() {
  return gulp.src('src/templates/**/*.jade')
    .pipe(plugins.plumber())
    .pipe(plugins.jade({
      pretty: false
    }))
    .pipe(plugins.rename(function(path){
      path.extname = '';
    }))
    .pipe(plugins.angularTemplatecache('templates.js', {
      standalone: true
    }))
    .pipe(gulp.dest('src/scripts'));
});

@miickel
Copy link
Owner

miickel commented Nov 5, 2014

And you still get .html?

@bierdok
Copy link
Author

bierdok commented Nov 5, 2014

no

@miickel
Copy link
Owner

miickel commented Nov 5, 2014

@bierdok ok, cool. This is the preferred gulp way to solve this, so the option is not needed. Feel free to fork if you really want it there 👍

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

2 participants