Security News
New axobject-query Maintainer Faces Backlash Over Controversial Decision to Support Legacy Node.js Versions
A JavaScript library maintainer is under fire after merging a controversial PR to support legacy versions of Node.js.
gulp-preprocess-file
Advanced tools
Readme
A Gulp plugin for Preprocess files based off environment configuration. Based on Preprocess package
$ npm install --save-dev gulp-preprocess-file
Gulpfile
var preprocess = require('gulp-preprocess-file');
gulp.task('html', function() {
gulp.src('./src/*.html')
.pipe(preprocess({
context: {
NODE_ENV: 'production',
title: 'Hello gulp'
}
}))
.pipe(gulp.dest('./dist/'))
});
html file
<body>
<h1><!-- @echo title --></h1>
<!-- @include ./includes/text.html -->
<!-- @if NODE_ENV='production' -->
<script src="https://cdn.jsdelivr.net/npm/jquery@3.2.1/dist/jquery.min.js"></script>
<!-- @endif -->
<script>
var title = '<!-- @echo title -->' || 'Default'
</script>
</body>
more: preprocess
gulp-preprocess-file
Based on Preprocess package
MIT © Mervin
FAQs
A Gulp plugin for Preprocess files based off environment configuration. Based on Preprocess package
The npm package gulp-preprocess-file receives a total of 7 weekly downloads. As such, gulp-preprocess-file popularity was classified as not popular.
We found that gulp-preprocess-file 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
A JavaScript library maintainer is under fire after merging a controversial PR to support legacy versions of Node.js.
Security News
Results from the 2023 State of JavaScript Survey highlight key trends, including Vite's dominance, rising TypeScript adoption, and the enduring popularity of React. Discover more insights on developer preferences and technology usage.
Security News
The US Justice Department has penalized two consulting firms $11.3 million for failing to meet cybersecurity requirements on federally funded projects, emphasizing strict enforcement to protect sensitive government data.