
Security News
NVD Concedes Inability to Keep Pace with Surging CVE Disclosures in 2025
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.
gulp-ng2-relative-path
Advanced tools
Gulp plugin to support relative paths in Angular2 for templates and styles.
Use relative paths within Angular2 components for templateUrl
and styleUrls
.
This package is based on the work of gulp-inline-ng2-template.
npm install --save-dev gulp-ng2-relative-path
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
};
var ng2RelativePath = require('gulp-ng2-relative-path');
var result = gulp.src('./src/ts/**/*.ts')
.pipe(ng2RelativePath({
base: './src/ts',
appBase: '/app',
modifyStylePath: function (path) {
return path.replace('.less', '.css');
}
}))
.pipe(tsc());
return result.js
.pipe(gulp.dest('./dist/app'));
FAQs
Gulp plugin to support relative paths in Angular2 for templates and styles.
The npm package gulp-ng2-relative-path receives a total of 19 weekly downloads. As such, gulp-ng2-relative-path popularity was classified as not popular.
We found that gulp-ng2-relative-path demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.
Security Fundamentals
Attackers use obfuscation to hide malware in open source packages. Learn how to spot these techniques across npm, PyPI, Maven, and more.
Security News
Join Socket for exclusive networking events, rooftop gatherings, and one-on-one meetings during BSidesSF and RSA 2025 in San Francisco.