gulp-pretty-url

0.1.1 • Public • Published

gulp-pretty-url

A simple https://github.com/hparra/gulp-rename wrapper to generate pretty URLs.

Install

npm install gulp-pretty-url --save-dev

Example

var gulp = require("gulp");
var prettyUrl = require("gulp-pretty-url");
 
gulp.task("pretty-urls", function() {
  return gulp.src("src/**/*.hbs")
    .pipe(prettyUrl())
    .pipe(gulp.dest("dest"))
});

Given the following file structure:

  .
  ├── index.hbs
  ├── qux.hbs
  └── foo
      ├── bar.hbs
      └── baz.hbs

The result would be:

  .
  ├── index.html
  ├── qux
  │   ├── index.html
  └── foo
      ├── bar
      │   └── index.html
      └── baz
          └── index.html

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.1
    11
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.1
    11
  • 0.1.0
    0

Package Sidebar

Install

npm i gulp-pretty-url

Weekly Downloads

11

Version

0.1.1

License

MIT

Last publish

Collaborators

  • kflorence