I believe it needs to be on the classpath. For example, I put my js files
in resources/assets (where resources is in the same directory as
project.clj) and I use preamble like this:
:compiler {
:preamble ["assets/js/myfile.js"]
; other compiler options
}
On 6 August 2014 11:56, Yehonathan Sharvit <[email protected]> wrote:
> I am not able to make it work. Where should I put the file? In the same
> folder as project.clj?
>
>
> On Wed, Jul 30, 2014 at 6:54 PM, Daniel Kersten <[email protected]>
> wrote:
>
>> You could use :preamble to prepend a file to the generated output.
>>
>>
>> On 30 July 2014 15:37, Yehonathan Sharvit <[email protected]> wrote:
>>
>>>
>>> How to insert a comment in the generated javascript file?
>>>
>>> 1. In simple compilation mode
>>> 2. In advanced compilation mode
>>>
>>>
>>> --
>>> Note that posts from new members are moderated - please be patient with
>>> your first post.
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "ClojureScript" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To post to this group, send email to [email protected].
>>> Visit this group at http://groups.google.com/group/clojurescript.
>>>
>>
>> --
>> Note that posts from new members are moderated - please be patient with
>> your first post.
>> ---
>> You received this message because you are subscribed to a topic in the
>> Google Groups "ClojureScript" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/clojurescript/Zc0bSoA5LA4/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> [email protected].
>>
>> To post to this group, send email to [email protected].
>> Visit this group at http://groups.google.com/group/clojurescript.
>>
>
> --
> Note that posts from new members are moderated - please be patient with
> your first post.
> ---
> You received this message because you are subscribed to the Google Groups
> "ClojureScript" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/clojurescript.
>
--
Note that posts from new members are moderated - please be patient with your
first post.
---
You received this message because you are subscribed to the Google Groups
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.