Don't match to string literals, because the path seperator is different on

windows
This commit is contained in:
yaur 2015-01-28 17:23:03 -05:00
parent cc99d810a9
commit 03093fc4a5

View file

@ -197,12 +197,8 @@ exports.config =
modules:
definition: (path, data) ->
needHeaders = [
'public/javascripts/app.js'
'public/javascripts/world.js'
'public/javascripts/whole-app.js'
]
defn = if path in needHeaders then commonjsHeader else ''
needHeaderExpr = regJoin('^public/javascripts/?(app.js|world.js|whole-app.js)')
defn = if path.match(needHeaderExpr) then commonjsHeader else ''
return defn
#- Find all .coffee and .jade files in /app