mirror of
https://github.com/discourse/discourse.git
synced 2025-03-21 19:45:42 +08:00
Have JSHint depend on the files it includes. Doesn't work for adding files but it helps
a lot in development mode.
This commit is contained in:
parent
d8978cb4a0
commit
b9a5a0460d
@ -165,6 +165,8 @@ var jsHintOpts = {
|
||||
ok = false if (filename =~ ig)
|
||||
end
|
||||
|
||||
depend_on filename
|
||||
|
||||
result << "qHint('#{filename}', '/assets/#{filename}', jsHintOpts);\n" if ok
|
||||
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user