New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

lessless

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lessless - npm Package Compare versions

Comparing version 0.2.5 to 0.2.6

8

lib/lessless.js

@@ -1,2 +0,2 @@

/* lessless version 0.2.5 copyright Dave Geddes (@geddesign) MIT license */
/* lessless version 0.2.6 copyright Dave Geddes (@geddesign) MIT license */

@@ -57,4 +57,5 @@ var less = require('less'), fs = require('fs'), diveSync = require("diveSync");

function optimizeProject(directory, styledirs) {
function optimizeProject(directory, styledirs, stripExtensions) {
directory = directory || process.cwd();
stripExtensions = stripExtensions || ['html'];
console.log('optimizing LESS in: ', directory);

@@ -72,4 +73,3 @@ diveSync(directory,

}
//todo make configurable
else if (extension === 'html' || extension === 'jsp') {
else if (stripExtensions.indexOf(extension) !== -1) {
adjustLinks(file);

@@ -76,0 +76,0 @@ }

@@ -10,3 +10,3 @@ {

],
"version": "0.2.5",
"version": "0.2.6",
"repository": {

@@ -13,0 +13,0 @@ "type": "git",

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