If you use `lein new` it should have been created for you. Its a directory
that gets added to the classpath and is typically used for non-code
resources and by default is "resources". You can change it (or add other
directories to it) by setting :resource-paths in your project.clj:

https://github.com/technomancy/leiningen/blob/983847276d12fcdac7a5b5eabbd5dfcb926087d7/sample.project.clj#L276


On 24 August 2014 09:44, Yehonathan Sharvit <[email protected]> wrote:

> It works now. Thanks.
>
> But what is this “resources” folder?
> Is it hard-coded in the cljs compiler? Where is it documented?
>
>
> On Wed, Aug 6, 2014 at 2:35 PM, Daniel Kersten <[email protected]> wrote:
>
>> 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 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.

Reply via email to