
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
gulp-js-freezer
Advanced tools
JS resources freezer. The best use for cache invalidation.
app-script.js
subdir/subdir-script.js
79f2ced21645cb7800b13c899aa09177ff5cad96.js
347770f808e05d90280d6dac1723d3e6f37db08e.js
js-freeze-map.json
{
"app-script.js": "../dest/79f2ced21645cb7800b13c899aa09177ff5cad96.js",
"subdir/subdir-script.js": "../dest/347770f808e05d90280d6dac1723d3e6f37db08e.js"
}
Install with npm
$ npm i gulp-js-freezer --save-dev
var gulpJsFreezer = require('gulp-js-freezer');
var deployPath = '../_deploy'
gulp.task('freeze-js', function () {
return gulp.src('../static/js/**/*.js')
.pipe(gulpJsFreeze({freezeMapBaseDir: '../static/js'}))
.pipe(gulp.dest(deployPath)) // writes freezed resources
.pipe(gulpJsFreezer.freezeMapResolve()) // creates map of freezed resources
.pipe(gulp.dest(deployPath)) // writes freeze map file
})
var gulpJsFreezer = require('gulp-js-freezer');
var deployPath = '../_deploy'
gulp.task('freeze-js', function () {
return gulp.src('../static/js/*.js')
.pipe(gulpJsFreezer({
freezeMapBaseDir: '../static/js', // resolve paths inside map file name by freezeMapBaseDir.
// default null (writes absolute path of freezed file)
freezeNestingLevel: 3, // nesting levels of directories; default 1
freezeMapFileName: 'js-freeze-map.json' // freeze map file name; default js-freeze-map.json
}))
.pipe(gulp.dest(deployPath))
.pipe(gulpJsFreezer.freezeMapResolve())
.pipe(gulp.dest(deployPath))
})
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Alex Batalov
Inspired by borschik.
Copyright © 2015 Alex Batalov Licensed under the MIT license.
FAQs
JS resources freezer. The best use for cache invalidation.
The npm package gulp-js-freezer receives a total of 4 weekly downloads. As such, gulp-js-freezer popularity was classified as not popular.
We found that gulp-js-freezer 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.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.