Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove "*.less" compilation

  • Loading branch information...
commit 899e8cd37a1ab634e1d6b0134b34ddd31a5d54ef 1 parent 68b3a5e
@wdavidw authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 lib/dojo.coffee
View
7 lib/dojo.coffee
@@ -74,6 +74,7 @@ module.exports = (options) ->
if app and submodules.indexOf( app[1] ) isnt -1
app = app[1];
req.url = req.url.substr app.length + 1
+ ### prior express 1.7
# Less
connect.compiler({ src: mapping[app], enable: ['less'] })(req, res, (err) ->
console.log err if err
@@ -83,6 +84,12 @@ module.exports = (options) ->
req.url = '/' + app + req.url
next()
)
+ ###
+ # Static
+ sttc = connect.static mapping[app]
+ sttc req, res, ->
+ req.url = '/' + app + req.url
+ next()
else
next()
plugin
Please sign in to comment.
Something went wrong with that request. Please try again.