gulp plugin to dynamically rewrite dest extensions based on src extensions.
(TOC generated by verb using markdown-toc)
Install
Install with npm:
$ npm i gulp-extname --save
Usage
var gulp = ;var extname = ; gulp;
Define extension
Explicitly pass an extension to use. Any of these will work:
// or // or
Extension mappings
The following extensions are mapped automatically:
// htmlmd //=> .htmlhbs //=> .htmlswig //=> .htmltmpl //=> .htmlhtml //=> .htmlhtm //=> .html // cssless //=> .cssstyl //=> .csssass //=> .cssscss //=> .csscss //=> .css // jscoffee//=> .jsjs //=> .js
Add extension mappings, or use rewrite-ext for non-gulp projects.
Related projects
- gulp-dest: Gulp plugin for easily defining destination paths using path variables. | homepage
- gulp-format-md: Gulp plugin for beautifying markdown using pretty-remarkable. | homepage
- gulp-htmlmin: gulp plugin to minify HTML. | homepage
- gulp-prettify: Prettify, format, beautify HTML. | homepage
- gulp-routes: Add middleware to run for specified routes in your gulp pipeline. | homepage
Running tests
Install dev dependencies:
$ npm i -d && npm test
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Author
Jon Schlinkert
License
Copyright © 2016 Jon Schlinkert Released under the MIT license.
This file was generated by verb on January 06, 2016.