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

less-middleware

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

less-middleware - npm Package Compare versions

Comparing version 0.1.11 to 0.1.12

3

lib/determine-imports.js

@@ -43,2 +43,5 @@ var fs = require('fs'),

var i, import_path, from_import_path;
filename = filename.value;
if (!filename.match(/\.(css|less)$/))
filename += '.less';
var from_current_path = path.join(current_dir, filename);

@@ -45,0 +48,0 @@ var from_root_path = path.join(root_dir, filename);

8

package.json

@@ -5,3 +5,3 @@ {

"description": "LESS.js middleware for connect.",
"version": "0.1.11",
"version": "0.1.12",
"repository": {

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

"dependencies": {
"less": ">= 1.3.3",
"mkdirp": ">= 0.3.1"
"less": "~1.4",
"mkdirp": "~0.3"
},

@@ -20,4 +20,4 @@ "devDependencies": {},

"engines": {
"node": "*"
"node": ">= 0.7.1"
}
}

@@ -261,1 +261,14 @@ ## Installation

## Troubleshooting
### My less never recompiles, even when I use `{force: true}`!
Make sure you're declaring less-middleware before your static middleware, if you're using the same directory, e.g. (with express):
```js
app.use(require('less-middleware')({ src: __dirname + '/public', debug: true }));
app.use(express.static(path.join(__dirname, 'public')));
```
not
```js
app.use(express.static(path.join(__dirname, 'public')));
app.use(require('less-middleware')({ src: __dirname + '/public', debug: true }));
```
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