Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

polybuild

Package Overview
Dependencies
Maintainers
3
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

polybuild - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

32

index.js

@@ -19,2 +19,3 @@ /**

var vulcanize = require('gulp-vulcanize');
var gutil = require('gulp-util');

@@ -39,19 +40,24 @@ var htmlPipe = lazypipe()

// rename files with an infix '.build'
var renamePipe = lazypipe()
module.exports = function(opts) {
opts = opts || {};
var crush = opts.maximumCrush;
var pipe = htmlPipe
// switch between cleaning or minimizing javascript
.pipe(crush ? uglify : leftAlign)
// rename files with an infix '.build'
.pipe(rename, function(path) {
path.basename += '.build';
})
;
// split the javascript out into `.build.js` for CSP compliance
.pipe(crisper)
()
;
module.exports = function(opts) {
opts = opts || {};
var crush = opts.maximumCrush;
return htmlPipe
// switch between cleaning or minimizing javascript
.pipe(crush ? uglify : leftAlign)
.pipe(renamePipe)
// split the javascript out into `.build.js` for CSP compliance
.pipe(crisper)
();
// have to handle errors ourselves, thanks gulp >:(
pipe.on('error', function(error) {
gutil.log(error.toString());
process.exit(1);
});
return pipe;
};
{
"name": "polybuild",
"version": "1.0.3",
"version": "1.0.4",
"main": "index.js",

@@ -5,0 +5,0 @@ "scripts": {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc