gulp-ng2-relative-path
Use relative paths within Angular2 components for templateUrl
and styleUrls
.
This package is based on the work of gulp-inline-ng2-template.
Installation
npm install --save-dev gulp-ng2-relative-path
Configurations
var defaults = base: './' // Source base folder appBase: '/' // Angular app base folder templateExtension: '.html' // Template file extension processTemplatePaths: true // Enable or disable template paths processing processStylePaths: true // Enable or disable style paths processing modifyPath: false // Function to additionally modify all file paths modifyTemplatePath: false // Function to modify only template paths modifyStylePath: false // Function to modify only style paths;
Example Usage
var ng2RelativePath = ; var result = gulp ; return resultjs ;