mirror of
https://github.com/discourse/discourse.git
synced 2025-04-03 05:39:41 +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)
|
ok = false if (filename =~ ig)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
depend_on filename
|
||||||
|
|
||||||
result << "qHint('#{filename}', '/assets/#{filename}', jsHintOpts);\n" if ok
|
result << "qHint('#{filename}', '/assets/#{filename}', jsHintOpts);\n" if ok
|
||||||
|
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user