Gathering detailed insights and metrics for gulp-jade-usemin
Gathering detailed insights and metrics for gulp-jade-usemin
Gathering detailed insights and metrics for gulp-jade-usemin
Gathering detailed insights and metrics for gulp-jade-usemin
npm install gulp-jade-usemin
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
21 Stars
54 Commits
15 Forks
4 Watchers
2 Branches
8 Contributors
Updated on Jan 28, 2023
Latest Version
1.1.4
Package Id
gulp-jade-usemin@1.1.4
Size
4.49 kB
NPM Version
5.0.0
Node Version
8.0.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
Replaces references to non-optimized scripts or stylesheets into a set of Jade files (or any templates/views).
This task is designed for gulp 3.
Attention: v0.3.0 options does not compatible with v0.2.0.
First, install gulp-jade-usemin
as a development dependency:
1npm install --save-dev gulp-jade-usemin
Then, add it to your gulpfile.js
:
1var usemin = require('gulp-jade-usemin'); 2var uglify = require('gulp-uglify'); 3var minifyHtml = require('gulp-minify-html'); 4var minifyCss = require('gulp-minify-css'); 5var rev = require('gulp-rev'); 6 7gulp.task('usemin', function() { 8 gulp.src('./*.jade') 9 .pipe(usemin({ 10 css: [minifyCss(), 'concat'], 11 html: [minifyHtml({empty: true})], 12 js: [uglify(), rev()] 13 })) 14 .pipe(gulp.dest('build/')); 15});
Sample usage in Jade file:
1//- build:css /css/app.css 2block stylesheets 3 link(rel='stylesheet', href='/css/style.css') 4//- endbuild 5 6//- build:js /js/app.js 7block scripts 8 script(src='/js/script1.js') 9 script(src='/js/script2.js') 10//- endbuild
maxListeners
option (for setting the maximum number of listeners for streams)outputRelativePath
and outputBasePath
option, it makes possible to use absolute routes to static files in jade templates independently to the folder structure of views/
or .
as first character in your rev replacement (e.g. you need to have relative or absolute paths via script(src='/foo.js')
as opposed to script(src='foo.js')
)video
and img supportappend
and prepend
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 existing vulnerabilities detected
Reason
security policy file detected
Details
Reason
Found 3/28 approved changesets -- score normalized to 1
Reason
project is archived
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More