less-middleware
Advanced tools
Comparing version 0.1.11 to 0.1.12
@@ -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); |
@@ -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 })); | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20525
303
274
+ Addedajv@6.12.6(transitive)
+ Addedasn1@0.2.6(transitive)
+ Addedassert-plus@1.0.0(transitive)
+ Addedasynckit@0.4.0(transitive)
+ Addedaws-sign2@0.7.0(transitive)
+ Addedaws4@1.13.2(transitive)
+ Addedbcrypt-pbkdf@1.0.2(transitive)
+ Addedcaseless@0.12.0(transitive)
+ Addedcombined-stream@1.0.8(transitive)
+ Addedcore-util-is@1.0.2(transitive)
+ Addeddashdash@1.14.1(transitive)
+ Addeddelayed-stream@1.0.0(transitive)
+ Addedecc-jsbn@0.1.2(transitive)
+ Addedextend@3.0.2(transitive)
+ Addedextsprintf@1.3.0(transitive)
+ Addedfast-deep-equal@3.1.3(transitive)
+ Addedfast-json-stable-stringify@2.1.0(transitive)
+ Addedforever-agent@0.6.1(transitive)
+ Addedform-data@2.3.3(transitive)
+ Addedgetpass@0.1.7(transitive)
+ Addedhar-schema@2.0.0(transitive)
+ Addedhar-validator@5.1.5(transitive)
+ Addedhttp-signature@1.2.0(transitive)
+ Addedis-typedarray@1.0.0(transitive)
+ Addedisstream@0.1.2(transitive)
+ Addedjsbn@0.1.1(transitive)
+ Addedjson-schema@0.4.0(transitive)
+ Addedjson-schema-traverse@0.4.1(transitive)
+ Addedjson-stringify-safe@5.0.1(transitive)
+ Addedjsprim@1.4.2(transitive)
+ Addedless@1.4.2(transitive)
+ Addedmime@1.2.11(transitive)
+ Addedmime-db@1.52.0(transitive)
+ Addedmime-types@2.1.35(transitive)
+ Addedmkdirp@0.3.5(transitive)
+ Addedoauth-sign@0.9.0(transitive)
+ Addedperformance-now@2.1.0(transitive)
+ Addedpsl@1.10.0(transitive)
+ Addedpunycode@2.3.1(transitive)
+ Addedqs@6.5.3(transitive)
+ Addedrequest@2.88.2(transitive)
+ Addedsafe-buffer@5.2.1(transitive)
+ Addedsshpk@1.18.0(transitive)
+ Addedtough-cookie@2.5.0(transitive)
+ Addedtunnel-agent@0.6.0(transitive)
+ Addedtweetnacl@0.14.5(transitive)
+ Addeduri-js@4.4.1(transitive)
+ Addeduuid@3.4.0(transitive)
+ Addedverror@1.10.0(transitive)
+ Addedycssmin@1.0.1(transitive)
- Removedcopy-anything@2.0.6(transitive)
- Removederrno@0.1.8(transitive)
- Removedgraceful-fs@4.2.11(transitive)
- Removediconv-lite@0.6.3(transitive)
- Removedimage-size@0.5.5(transitive)
- Removedis-what@3.14.1(transitive)
- Removedless@4.2.0(transitive)
- Removedmake-dir@2.1.0(transitive)
- Removedmime@1.6.0(transitive)
- Removedmkdirp@3.0.1(transitive)
- Removedneedle@3.3.1(transitive)
- Removedparse-node-version@1.0.1(transitive)
- Removedpify@4.0.1(transitive)
- Removedprr@1.0.1(transitive)
- Removedsax@1.4.1(transitive)
- Removedsemver@5.7.2(transitive)
- Removedsource-map@0.6.1(transitive)
- Removedtslib@2.8.1(transitive)
Updatedless@~1.4
Updatedmkdirp@~0.3